Link to home
Start Free TrialLog in
Avatar of Nobuo Miwa
Nobuo Miwa

asked on

Open Excel file with external application

Hello experts,

I am a new in Android programming.

My application downloaded a Excel file(.xlsx) and I want to open it and view it with other application that can open it (ex. DocumentsToGo).

How can I call and pass a Excel file to external application ?
Could you show me some sample code ?

Regards,
Nobuo Miwa
ASKER CERTIFIED SOLUTION
Avatar of simonet
simonet
Flag of Brazil image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Nobuo Miwa
Nobuo Miwa

ASKER

Thank you for quick reply !
 
I will try and reply result.

Regards,
Nobuo Miwa
Hello,

I tried this approach, and I saved my file into /data/data/[package]/files/
with permission -rw------- .
When I set its url to  "file:///data/data/[package]/files/downloaded.jpg" to open it,
it appeared as just dark screen.

If you have any good idea, please let me know..

Regards,
Nobuo Miwa
Hello.

I solved this, I just copied target file to other name with
MODE_WORLD_READABLE. Then other Application can
open and view it.

Thank you.
It was a nice suggestion to me and quick reply. Thanks.