How to get Programmatically Get Application Name

by wyngnut » Mon, 08 Dec 2008 01:50:54 GMT

Sponsored Links

I am trying to get the Application Name (the one that accompanies the
icon in the launcher) for all packages installed in the device.  I
have the packageName and name from the ActivityInfo retrived view
queryIntentActivities(), but can't seem to locate the Application
Name.  Any pointers would be appreciated.



How to get Programmatically Get Application Name

by Mark Murphy » Mon, 08 Dec 2008 02:24:10 GMT


Can you use PackageManager#getApplicationInfo()?

Mark Murphy (a Commons Guy) 
_The Busy Coder's Guide to Android Development_ Version 1.9 Available!


Sponsored Links

How to get Programmatically Get Application Name

by Derek » Mon, 22 Dec 2008 10:12:33 GMT

 Not sure is this what you want

Assuming you have your current Context object ctx

Resources appR = ctx.getResources();
CharSequence txt = appR.getText(appR.getIdentifier("app_name",
"string", ctx.getPackageName()));



Other Threads

1. Boot up directly to the google search:Redude first screen time

I have written one application (say my home screen).
How can i change the code to boot my own screen?
To get my own home screen Do i need to change the android code and
compile it?


> > website:

2. Are the market stats broken for developers?

For a month and a half my application has had a number of downloads
versus number of active installs percentage of 77% and then over the
past two days it has gone down to 65%.  The most recent update my
downloads went up by ~250 and my active installs actually DECREASED by
200.  Seems like a plus sign was switched with a minus sign in the
update script or something.  Just doesn't seem right that over a
months time my percentage stays the same and then overnight it changes
so drastically.  Any insight on this?  Anyone else seeing the same


3. Spacing inbetween Views

4. In the Gallery from Intent.ACTION_PICK, can I override the longClick?

5. Highlight Linearlayout

6. Picking a contact and returning to the parent activity.

7. The concurrency control of ContentProvider whose android:multiprocess is set true