On Mon, Apr 11, 2011 at 11:57 AM, Jacob <[email protected]> wrote: > I need to keep my data on the device until > the app is "uninstalled".
Please treat your users with respect. It is their device, not yours. If they wish to clear the data, that is their choice. If you have data that you do not want them to clear, don't put it on the device. Access it from the Internet instead. > My app is not meant to > be on rooted devices. Your users can and will root their phones, if they so choose. > Note: I saw the /data/data/'my app package'/lib directory is not being > deleted using the "clear data" option. But I couldn't programatically > write to this direcroty. I get permission denied. Is there a way to > use this directory to store my data? I doubt it. > Is there a way to use NDK (not > worked on it yet) to keep the data safe? I doubt it. > Is there a way to keep the > data in application reosurce or something like a DLL resource in > Windows programing. You can package whatever data you want with your APK (e.g., assets/), and that data cannot be removed except by uninstalling, but that is not modifiable at runtime. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.6 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

