On 16 February 2011 13:53, San Zhang <dahua007...@gmail.com> wrote: > My app can be autostarted when system completed boot. However, this feature > would be disabled if user intall the app on SD card. I want to disable > AUTOSTART option in settings screen in my own code if it may be detected > whether the app is installed on SD card. Is it possible? If answer yes, how > to do it?
Use PackageManager to read ApplicationInfo and check FLAG_EXTERNAL_STORAGE flag. But I'd rather show popup saying "Autostart does not work if app is on SD card" instead of silently graying option out. Most users won't get why it "does not work" -- Regards, Marcin -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en