On Sat, Sep 4, 2010 at 5:56 PM, Flying Coder <[email protected]> wrote: > However, in this case, I will get a SecurityException if I try to read > from the Astrid ContentProvider since that permission didn't exist > when my app was installed.
That's very interesting. I've never tried this. I would have expected the install to fail, because of the missing permission declaration. I'd argue that it's a bug/limitation-to-be-fixed of the OS, if the permissions are not patched up when both sides (definer and requester) are installed. > (1) is there any way for my app to "re-request" > the permission after Astrid has been installed? Not that I'm aware of. > And, (2) if not, is > there any easy way to save & restore my applications data (database & > shared preferences) between an uninstall/reinstall so that the user > does not have to reconfigure? Copy the files to the SD card or cloud before uninstall, then copy them back on a reinstall. So long as the files are closed (e.g., no open database connections), this should not be too tough. The danger, though, is that the user kicks off the uninstall without going through your backup process. Another possibility would be for you to break your app up into two pieces -- the main part and the Astrid integration plug-in. The plug-in might have to be reinstalled, but not the main app, and so the data should remain undisturbed. -- 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.1 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

