How to get Programmatically Get Application Name

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


Sponsored Links
 Hi,

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.

Thanks

--~--~---------~--~----~------------~-------~--~----~



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)
 http://commonsware.com 
_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()));

Derek








--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Porting to J2ME

Are there any fast tracks to porting Android to J2ME?

Thanks

--~--~---------~--~----~------------~-------~--~----~

2. How to force Uninstall/Reinstall instead of upgrade from the Market?

I have not published my app to the market.
But when I upgarde the apps I use, it forced myself to reinstall.








-- 
Regards,
Michael Leung
http://www.itblogs.info
http://www.michaelleung.info

--~--~---------~--~----~------------~-------~--~----~

3. ADC2 Rules are Unfair

4. Creating Default Connection Entery..

5. Having Android Documentation in Groups Pages area

6. How to force Uninstall/Reinstall instead of upgrade from the Market?

7. Aurora 1.0 is available in MarketPlace - more than device search