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
Highlighted
New Contributor
Posts: 3
Registered: ‎05-20-2010
My Device: storm 9500
My Carrier: vodafone

Application keeps restarting

I have written an application using the Invocation class, and it keeps restarting once it is launched.

 

Here is what I have:

 

String url = "file:///SDcard/BlackBerry/pictures";
String [] args2 = {net.rim.device.api.content.BlackBerryContentHandler.MEDIA_ARGUMENT_VIEW_PICTURES};
Invocation inv = new Invocation(url, null, net.rim.device.api.content.BlackBerryContentHandler.ID_MEDIA_CONTENT_HANDLER);
inv.setArgs(args2);
Registry registry = Registry.getRegistry(Pictures.class.getName());
registry.invoke(inv);

 

 

Is there something I have forgotten to do?