Hey guys....
I have a problem... I wan't to retrieve the list of applications
installed in the device.. I was able to retrieve it using
PackageManager class and using the getInstalledApplications(int flags)
method.. But I can only retrieve the application's process names and
package names.. I can't retrieve their Application names (the name
found in it's icon in the Application list tab).. Is there a problem
with this code???
ArrayList<String> app = new ArrayList<String>();
PackageManager appInfo = this.getPackageManager();
List<ApplicationInfo> list = appInfo.getInstalledApplications(0);
for (int i=0; i<list.size(); i++) {
ApplicationInfo content = list.get(i);
app.add(content.packageName);
}
this.setListAdapter(new ArrayAdapter<String>(this,
android.R.layout.simple_dropdown_item_1line, app));
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---