I’m working on an Android app in which I have to open & close excel files on button click. These excel files will be readonly. After closing the excel file, it should direct me to the app.
Please suggest me a way to do this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Android 7.0 Update:
Android 7.0 will throw
FileUriExposedExceptionif you try to open your app document with an external app. You need to implement FileProvider refer This Answer.here is a manual route.
Using JExcelApi in an Android App
How to read excel file using JXL 2.6.12 jar
but here is a little more easier one.
open application
but i guess you have to find out the
MIME TYPE.EDIT
got the mime type as well
Setting mime type for excel document
UPDATE
so something like this might work.