Ooops... just replied before I saw your email... Ok... I'll try the flag...

Thanks.

Sincerely,

Brad Gies
-----------------------------------------------------------------------
Bistro Bot - Bistro Blurb
http://bgies.com            http://nocrappyapps.com
http://bistroblurb.com      http://forcethetruth.com
http://ihottonight.com
-----------------------------------------------------------------------
Everything in moderation, including abstinence (paraphrased)

Every person is born with a brain... Those who use it well are the successful 
happy ones - Brad Gies

Adversity can make or break you... It's your choice... Choose wisely - Brad Gies

Never doubt that a small group of thoughtful, committed people can
change the world. Indeed. It is the only thing that ever has - Margaret Mead


On 07/12/2010 12:27 AM, Dianne Hackborn wrote:
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 <[email protected] <mailto:[email protected]>> 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 <[email protected] <mailto:[email protected]>>:
    > It's always refreshing to see people paying attention to
    > internationalization issues. :=)
    >
    > On Dec 6, 12:39 pm, Brad Gies <[email protected]
    <mailto:[email protected]>> 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
    [email protected]
    <mailto:[email protected]>
    > To unsubscribe from this group, send email to
    > [email protected]
    <mailto:android-developers%[email protected]>
    > 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
    [email protected]
    <mailto:[email protected]>
    To unsubscribe from this group, send email to
    [email protected]
    <mailto:android-developers%[email protected]>
    For more options, visit this group at
    http://groups.google.com/group/android-developers?hl=en




--
Dianne Hackborn
Android framework engineer
[email protected] <mailto:[email protected]>

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 [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

--
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

Reply via email to