Wednesday, February 26, 2014

Re: [android-developers] External Storage lockout in 4.4 update on some Samsung devices.

Users should have to backup data first. 

On Tuesday, February 25, 2014 3:21:14 PM UTC-5, Nathan wrote:


On Thursday, February 20, 2014 5:25:28 PM UTC-8, Nathan wrote:


There is a chance that if I directed my users to use: Android/data/com.example.foo/ on external storage devices that they might be able to use their valued card.

However, that is difficult to test as I don't have one of the target devices, much less all of them.

Another snag with that idea I had. Based on this API, those files will get wiped if the app is uninstalled.

Very undesirable if the user uninstalled and reinstalled and loses valuable data. 

Nathan

public abstract File[] getExternalFilesDirs (String type)

Added in API level 19

Returns absolute paths to application-specific directories on all external storage devices where the application can place persistent files it owns. These files are internal to the application, and not typically visible to the user as media.

This is like getFilesDir() in that these files will be deleted when the application is uninstalled, however there are some important differences:


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment