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
prajith
Posts: 32
Registered: ‎05-24-2009
My Device: Not Specified

How to list out all Installed UI Applications In a blackberry phone ?

[ Edited ]

Hi,

 

I need to list out all installed application(Camera,Calculator....., Third party applications which have a UI ie Midlet application ) in my blackberry phone with  Invoke Details ( Invoke details means ApplicationDescriptor or moduleHandle id etc )

 

Eg :

 

Application –  Invoke Id

 

  1. Calendar - moduleHandle for Calendar

  2. My Hello World Application - moduleHandle for My Hello World Application

  3. ........

  4. ........


 

 

[I already started one thread for the same : ( http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=39915&query.id=10...) But it cannot reach my requirement ]

 

 

From my experience i found that there is a method for list out all applications

 

ie

CodeModuleManager.getModuleHandles()


Which will return all modules handlers


Then,

 

CodeModuleManager.getApplicationDescriptors(int moduleHandle)

 

returns List of ApplicationDescriptor[] for the module

 

 

 

I need to differentiate the UI applications using ApplicationDescriptors

 

  1. Which are the UI (Have Graphical User interface like Map, Calendar .... ) applications that can  Invoked from our applications

 

 

There is a method “ CodeModuleManager.isMidlet(int moduleHandle) “ but it always returns false

 

 

How can i solve the issue ? Can u help me

Message Edited by prajith on 06-18-2009 06:12 AM
Please use plain text.
Developer
jhaehnle
Posts: 238
Registered: ‎08-26-2008
My Device: Not Specified

Re: How to list out all Installed UI Applications In a blackberry phone ?

Hi,

 

i only found getArgs as String[] in api of applicationDescriptor. Mybe you will find in there what you are searching for?

 

Regards,

Jochen

Please use plain text.
Developer
prajith
Posts: 32
Registered: ‎05-24-2009
My Device: Not Specified

Re: How to list out all Installed UI Applications In a blackberry phone ?

[ Edited ]

 Hi,

 

Using the getArgs methodswe we cannot identify the UI applications,

 

There is no relation for UI application (ie Some UI application have args[] and some does not ).

 

Thank you for your replay 

Message Edited by prajith on 06-19-2009 07:48 AM
Please use plain text.
New Developer
michel613
Posts: 1
Registered: ‎09-22-2009
My Device: Not Specified

Re: How to list out all Installed UI Applications In a blackberry phone ?

 

Hi Prajit,

 

Your post is interesting.

 

I have an additional question : In the list of installed applications, how can we differentiate between native applications (Camera, etc...) and user installed applications (Third party applications that user installed after buying the device) ? 

 

Thanks in advance for any clues to differentiate those 2 kind of applications.

 

Michel.

Please use plain text.
Developer
sneg
Posts: 50
Registered: ‎12-23-2009
My Device: Not Specified

Re: How to list out all Installed UI Applications In a blackberry phone ?

Hi michel613.

 

Try to look at 

 

static String getModuleVendor(int moduleHandle)

 

in CodeModuleManager

Please use plain text.