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
Posts: 109
Registered: ‎02-09-2009
My Device: Not Specified
Accepted Solution

Programatically launch the Pictures app?

I would like to invoke the pictures app, but I am not sure quite what to pass into Invoke. Is it possible to do this?

Developer
Posts: 109
Registered: ‎02-09-2009
My Device: Not Specified

Re: Programatically launch the Pictures app?

Answered my own question and wanted to share:

 

 

Invocation media = new Invocation();
						media.setID(BlackBerryContentHandler.ID_MEDIA_CONTENT_HANDLER);
						media.setArgs(new String[]{BlackBerryContentHandler.MEDIA_ARGUMENT_VIEW_PICTURES}); 
						Registry.getRegistry(getClass().getName()).invoke(media);

 

 

Developer
Posts: 109
Registered: ‎02-09-2009
My Device: Not Specified

Re: Programatically launch the Pictures app?

I take it back, this seems to work in the simulator (4.7), but not on the device? Any idea what is going on here. I also tried running this code inside of a syncrhonized block on the event lock, but no luck either...

Developer
Posts: 109
Registered: ‎02-09-2009
My Device: Not Specified

Re: Programatically launch the Pictures app?

Any ideas? I wish I hadn't marked as solved so quick, as I am sure no one will read this anymore... :/