Open an excel file when opening an Activity

Asked

Viewed 137 times

0

I want to put a file Excel in my Android project. I want to leave it already in the same project as if it loads an image, and when I call a Activity, I want to open this file Excel.

Is there a way to do this, or am I traveling a lot? I want to do this so I don’t have to print the Excel file and make several images. I’ve found some topics about uploading Excel file, but I want to know how I play it in my already fixed project because when I play the file .xlsx he doesn’t even recognize the file, and I can’t get past the file to open, I don’t know if I put it in the wrong folder.

I’m using android Studio.

Thank you.

Att,

  • Well, it would be a job to read the entire excel spreadsheet and organize it on a screen, for that have the applications espeficicos, and when it is necessary to open some specific type of file, vc simplimente makes the call Intent pro system, and it selects the appropriate application to open the file. But if you choose to load the information in the application itself you must add files in the Assets folder, and in Activity use the getAssets() method, it will give you the directory, then just look for the name of the file you added there and read it

  • Weselly, could you add me on Skype, give me a hand? Skype: alexssouza3

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.