开发者

Blackberry File Invocation

Why this won't work on a device but it works on a bb simulator. Do you have any su开发者_开发百科ggestions to make it work on the device?

   Invocation invocation = new Invocation("file:///SDCard/BlackBerry/music/song.mp3"); 
   Registry reg = Registry.getRegistry("net.rim.device.api.content.BlackBerryContentHandler");
   reg.invoke(invocation);


I found the solution by registering not the content handler but the application package. In my case:

Registry _registry=Registry.getRegistry("myapp.mobile.app");
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜