I have a binary file in the R.raw folder. Now I am able to
get the file name and can read the file as well, but I need to find out the complete
path of the file in string format.
any help will be appreciated.
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.
So if you are able to get the file name you probably have a File object. If so call this method: http://developer.android.com/reference/java/io/File.html#getAbsolutePath%28%29
I think you should consider storing new files into your application data directory:
http://developer.android.com/reference/android/content/ContextWrapper.html#getDir%28java.lang.String,%20int%29