Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Super Contributor
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd
Accepted Solution

get all the installed applications on device and show is list

hi, is it possible to retrieve all the installed application from our device with the name of apps and i want to show  all the in Listfiled ?

Developer
Posts: 16,789
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: get all the installed applications on device and show is list

yes.
use codemodulemanager.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
Super Contributor
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd

Re: get all the installed applications on device and show is list

hi , 
i have another querry , simon you told me that we can get all the insatlled apps from our device and show in Listfiled with codemodulemanager. that's fine i understand that one,  actually i am thinking of Lock app for this i have to re-search on some topics, i'll explain my idea 
for example:- we have get all the install applications form our BBerry device with codemodulemanager we will show all that apps in list filed and now what i am thinking is when the user selects any application from that list-filed(i mentioned , which contains all the apps)
 we will save the package name of that selected app from list-filed and save it in database and when user selects that application from the Homescreen to open it, first i will get it's package name and then i want to check that package in my database. if the package name exist in databse then i 
 want to show a screen which will say like "the app is locked".  

Developer
Posts: 19,631
Registered: ‎07-14-2008
My Device: Not Specified

Re: get all the installed applications on device and show is list

It is always useful to search the forum - remember the BB platform has been round a while and it is likely someone will have asked a similar question before.  In this case, here is one of the Threads that I found when searching for 'lock application'.

 

http://supportforums.blackberry.com/t5/Java-Development/Locking-Certain-Application/m-p/719993#M1387...

Super Contributor
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd

Re: get all the installed applications on device and show is list

hi, i just want to check myself that i am doing the right thing to get the all installed apps, so please tell me i am doing right or not ??????????
 i have got the all installed apps from the device by using this code. is this correct method ?

 CodeModuleGroup[] codeModuleGroups = CodeModuleGroupManager.loadAll();
		    System.out.println(" CodeModuleGroup  "+ codeModuleGroups.length);  
		    for (int i=0; i<codeModuleGroups.length;i++) {
		    	System.out.println(" getFriendlyName  "+ codeModuleGroups[i].getFriendlyName());  
		    	System.out.println(" \n");  
		    	
		    }

 and i am getting the following in console 

 CodeModuleGroup  104
[0.0]  getFriendlyName  Documents To Go
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Email Setup library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Texas Hold'Em King 2
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Sudoku
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Klondike
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Social Feeds
[0.0]  
[0.0] 
[0.0]  getFriendlyName  eBay
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Messenger
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Sunrays
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Identity
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Facebook
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Podcasts
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry 6.0.0 Core Applications
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Email Setup
[0.0]  
[0.0] 
[0.0]  getFriendlyName  YouTube
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry API Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Crypto Applications API Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Crypto Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry CMS Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  French
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Spanish
[0.0]  
[0.0] 
[0.0]  getFriendlyName  English UK
[0.0]  
[0.0] 
[0.0]  getFriendlyName  German
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry PGP Key Store Browser Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Certificate Key Store Browser Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Key Store Browser Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  GSA CAC Smart Card Driver Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Full Fast Predictive Input Method Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Japanese Characters and Font Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Italian
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Indic Characters and Font Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Indonesian
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Hindi Localization
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Hindi
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Simplified Stroke IM Linguistic Data Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Simplified Chinese Characters and Font Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Simplified Localization Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Simplified Input Method Default Resource Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Stroke Input Method Core Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Phonetic Input Method Core Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Hanwang key Input Method Core Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Default Resource Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Input Method Core Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Hindi Localization
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Vietnamese
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Thai Characters and Font Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Thai
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Korean Characters and Font Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Korean
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Traditional Pinyin Input Method
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Traditional CangJie Input Method
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese BoPoMoFo Input Method
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Traditional Chinese Characters and Font Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Traditional Localization Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Traditional IM Linguistic Data Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese HongKong Input Method Default Resource Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese WubiHua Input Method
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Simplified Pinyin Resources Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Simplified Pinyin IM Linguistic Data Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Pinyin Input Method
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Simplified CangJie Input Method
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Application Center
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Word Mole
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BrickBreaker
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry XML Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry S/MIME Email Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry PGP Email Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Secure Email Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  SafeNet 330 Smart Card Driver Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  PIV Smart Card Driver Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry PGP Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  microSD Smart Card Reader
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry X.509 LDAP Browser
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry PGP LDAP Browser
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry LDAP Browser Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Stroke Input Method
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Protect
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Twitter
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Enhanced Gmail Plug-in
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Help
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Browser
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Maps
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry 6.0.0 System Software
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Tasks
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Phone
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Password Keeper
[0.0]  
[0.0] 
[0.0]  getFriendlyName  MemoPad
[0.0]  
[0.0] 
[0.0]  getFriendlyName  German Language Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry ECMAScript Library
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Traditional Chinese Language Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Chinese Language Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Thai Language Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Korean Language Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Italian Language Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Indonesian Language Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  French Language Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Spanish Language Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  English UK Language Support
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry Wallet
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Wireless Music Sync
[0.0]  
[0.0] 
[0.0]  getFriendlyName  net_rim_bb_medialoader_ringtones_480x360_03_b
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Lock
[0.0]  
[0.0] 
[0.0]  getFriendlyName  Sai Vahini
[0.0]  
[0.0] 
[0.0]  getFriendlyName  BlackBerry App World

 



Super Contributor
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd

Re: get all the installed applications on device and show is list

any suggestions for my above question ?

Developer
Posts: 16,789
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: get all the installed applications on device and show is list

looks good
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 19,631
Registered: ‎07-14-2008
My Device: Not Specified

Re: get all the installed applications on device and show is list

You might like to compare what you get with this:

 

  ApplicationManager appMan = ApplicationManager.getApplicationManager();
  ApplicationDescriptor appDes[] = appMan.getVisibleApplications();

 

But your list looks fine to me. 

Super Contributor
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd

Re: get all the installed applications on device and show is list

i have ask one that the list above i posted contains all applications or it is combination of applications with library's ?
if it contains libraray's then how would i know which are appliations and which are library's ? 

Super Contributor
Posts: 425
Registered: ‎01-02-2013
My Device: BOLD 9900
My Carrier: sdvsdvsd

Re: get all the installed applications on device and show is list

i have to ask one thing that the list above i posted contains all applications or it is combination of applications with library's ?
if it contains libraray's then how would i know which are applications and which are library's i mean i only want to show the application which the user can able to launch from the Home screen ? 

i am working on 5 OS.