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
Developer
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone
Accepted Solution

How to get Installed Applications from device??

hello..

I want to get list of installed applications from blackberry device... I have been using below code :

int[] handle = CodeModuleManager.getModuleHandles();

but it gives me list of handles for all singleton and eldest-sibling modules.

 

i want the list as there in options>device>applicationManagement ..

 

Can anyone help me regarding this?????

 

 

Please use plain text.
Developer
simon_hain
Posts: 16,113
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to get Installed Applications from device??

you have to work with these information, the only other method is for visibly running apps in http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/ApplicationManager.html...
----------------------------------------------------------
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
Please use plain text.
Developer
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone

Re: How to get Installed Applications from device??

No .. i have the list of running applications .... but i need installed applications list ... 

there is no way to get the list of installed app...?????? 

 

Please use plain text.
Developer
simon_hain
Posts: 16,113
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to get Installed Applications from device??

you have to work with the module handles.
----------------------------------------------------------
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
Please use plain text.
Developer
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone

Re: How to get Installed Applications from device??

Can't u give me some more information about it ????

i m not getting any idea .. how to work on handles??

Please use plain text.
Developer
simon_hain
Posts: 16,113
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to get Installed Applications from device??

Retrieve information about an installed module. Once you have the module's handle, you can get back a variety of information about the module:

try {
// retrieve specific information about a module
String name = CodeModuleManager.getModuleName( handle );
String vendor = CodeModuleManager.getModuleVendor( handle );
String description = CodeModuleManager.getModuleDescription( handle );
int version = CodeModuleManager.getModuleVersion( handle );
int size = CodeModuleManager.getModuleCodeSize( handle );
int timestamp = CodeModuleManager.getModuleTimestamp( handle );
} catch( IllegalArgumentException iae ) {
// deal with an invalid module handle
}

taken from the API docs http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/CodeModuleManager.html
----------------------------------------------------------
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
Please use plain text.
Developer
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone

Re: How to get Installed Applications from device??

i know how to get module information .. i want only list of installed app's not there information ....

Please use plain text.
Developer
simon_hain
Posts: 16,113
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to get Installed Applications from device??

well, the name should be sufficient, then.

these are the APIs available.
----------------------------------------------------------
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
Please use plain text.
Developer
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone

Re: How to get Installed Applications from device??

But CodeModuleManager.getModuleHandles() gives the inner packages too...  It gives me 554 module names on my bb device...

Please use plain text.
Developer
simon_hain
Posts: 16,113
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to get Installed Applications from device??

maybe working with codemodulegroups is better, see
http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/system/CodeModuleGroupManager....
----------------------------------------------------------
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
Please use plain text.