[android-porting] Re: Detecting whether an APK is installed on the system folder

2010-11-23 Thread Chris Stratton
On Nov 23, 10:32 am, Shachar Shemesh wrote: > I'm not sure this is the right forum to ask, but here goes. I want to > write an APK that can be installed as a standard application, but can > also be placed in the /system/app folder. More importantly, I want the > program to behave slightly differe

[android-porting] Re: Detecting whether an APK is installed on the system folder

2010-11-25 Thread gopu
Hi , May be this link helps u... http://groups.google.com/group/android-developers/browse_thread/thread/acba8828f95fbf09/e056c92d2a834890?lnk=gst&q=getApplicationContext%2Bgopu#e056c92d2a834890 On Nov 23, 11:05 pm, Chris Stratton wrote: > On Nov 23, 10:32 am, Shachar Shemesh wrote: > > > I'm n

Re: [android-porting] Re: Detecting whether an APK is installed on the system folder

2010-11-25 Thread Dianne Hackborn
That thread doesn't actually give any good advice for this. Certainly don't look at paths and try to infer anything from that. The API to find out if an application is built into the system image is ApplicationInfo.FLAG_SYSTEM. Just use Context.getApplicationInfo() to get your ApplicationInfo.