I am trying to access a file from the context, but I am unable to do this. I use context.openFileInput() method but it returns a stream while I need a File object of the file that i want to access.
Yours,
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.
You can use below function of context which will return File
Returns the absolute path on the filesystem where a file created with openFileOutput(String, int) is stored.