+ 1

What is the right path that I can use to create and write on a file I'm my smart phone?

I wrote a java code to create and write into a file on my smart phone but it didn't work. can anyone please tell me what path should I use . the path I'm already using us "/storage/emulated/0/test.txt". but it's not working. thank you all

2nd Oct 2017, 10:20 AM
Ahmed Baraket
Ahmed Baraket - avatar
1 Answer
hi, i don't know so much of android but maybe this is of any help. https://stackoverflow.com/questions/27067392/android-app-how-to-write-to-android-devices-documents-folder 1.) make sure to catch the exception! 2.) make sure you set permissions 3.) try to write to the Document folder first hope that helps
18th Nov 2017, 11:10 AM
Gunther Strauss
Gunther Strauss - avatar