Yes, use FLAG_SYSTEM. Don't look at paths. I can guarantee trying to infer things from paths will break in the future.
On Mon, Dec 6, 2010 at 7:20 PM, XC He <schosnab...@gmail.com> wrote: > System app is installed under /system/app > In theory, it cannot be uninstall. > you can use applicationinfo to fing the flags, if the flags contains > FLAG_SYSTEM, it could be system app. > > import android.content.pm.ApplicationInfo; > import android.content.pm.PackageManager; > > PackageManager pm = context.getPackageManager(); > ApplicationInfo appInfo = pm.getApplicationInfo(yourpackageName, 0); > > if (appInfo.flags & ApplicationInfo.FLAG_SYSTEM){ > ... > } > > 2010/12/7 Bob Kerns <r...@acm.org>: > > It's always refreshing to see people paying attention to > > internationalization issues. :=) > > > > On Dec 6, 12:39 pm, Brad Gies <rbg...@gmail.com> wrote: > >> Well.. the comment would work... but I'd need translations :). > > > > -- > > 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<android-developers%2bunsubscr...@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 post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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