Reputation: 166
My app needs to write data into files (should be user-accessible). Now I usually check whether external storage is available/writable or not. If it's available & writable, app would be able to save data to external storage. It at all, the external storage is not available, what should be my next option to write/store data that user can access easily. (writing data into internal storage might be frustrating for the user to search). help please.
Upvotes: 2
Views: 6773
Reputation: 82563
If the external storage is unavailable and you want the data to be user accessible, then you should show a dialog informing the user that he/she should make the external storage accessible (putting in an SD Card or disconnecting from the computer, whatever is required). For small files, you could maybe try asking the user and uploading them to his/her dropbox or Google Drive or some other cloud storage accounts.
Also, keep in mind, that as Budius said in the comments, all devices wil have an external storage, even if it isn't available at the moment. This is not completely true though. All device which have been verified by Google and have Google Play will have an external storage. Devices running custom hardware and modified versions of Android may not.
Upvotes: 1