If I save a file without any path name .. e.g. “abc.txt” … where would it be saved on the device ?
where should I look in emulator file system if to try to find a file I saved?
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.
Don’t do that.
Use
getFilesDir()to get at the root of your application-local file area on internal storage. Or, useopenFileOutput(), which gives you anOutputStreamto a file in the directory identified bygetFilesDir().