information (appName, package name,class name, action,
categoty,mimetype and extras corresponding to the launch Activity of
all installed applications)
I am building a widget platform(not using Android native widget
platform) which can launch installed applications. When the widget
starts, I want to parse through the list of all insatlled
applications, and get all their infomation.
Sam & Paul, I saw your "finding the name of installed application"
posts on Android Developers discussion,
"
PackageManager pm = this.getPackageManager();
Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
List<ResolveInfo> list = pm.queryIntentActivities(mainIntent, 0);
for(ResolveInfo info: list)
{
Log.w("App browser",
info.activityInfo.applicationInfo.loadLabel( pm ).toString));
}
"
The question is that I want ALL info of ALL installed applications.
Including action, categoty,mimetype and extras corresponding to the
launch Activity of all installed applications.
Searched for quite long time, I cannot seem to figure out how to
obtain those info about installed applications.
Thanks,
Kangli
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment