java - Files not saving if app is installed from APK -


my app doesn't save files in internal storage if installed apk if installed ide adb saving. apk generated build/build apk

i solved problem. don't know why when using

fileoutputstream fos = new fileoutputstream(file); 

it wasnt working, when changed to:

fileoutputstream fos = context.openoutputstream("file.txt", context.mode_private); 

it works fine.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -