开发者

Blackberry File Invocation

开发者 https://www.devze.com 2023-03-01 11:17 出处:网络
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?

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

精彩评论

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