Be nice to your users, making your application such an integral part of their lives that they would never DREAM of doing a factory reset -- for fear of losing your app and ruining their lives forever.
Other than that, if you're an IT department wanting to make sure your corporate apps aren't lost on a reset (and enabling a reset as a way to wipe it for either support purposes or to reassign the device): Do what Mark said -- become your own factory, and put together your own firmware. One approach to this is through the Android Kitchen at modaco.com, the paid version of which lets you upload files to include into the final generated build. It doesn't look all that hard to put together a custom build from a stock one, but I've never tried. You'll need a modified recovery that allows you to install unsigned releases -- and you'll lose the ability to update the OS over the air, which might negate any support benefit you thought you might get. On the other hand, you might consider that a feature! I guess there's also the negative strategy -- make it clear you'll make their lives miserable if they do a factory reset! But I've never found persuading users NOT to do something works very well. On Jan 6, 12:14 am, Hareef <toar...@gmail.com> wrote: > Factory Data reset will remove everything and uninstall the third > party apps > So, how can i prevent my app getting uninstalled? > > Thanks -- 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