How to launch AppWorld from an application? [BlackBerry]

匆匆过客 提交于 2019-12-05 11:59:37
AK Joshi

Here is a simple way to do this:

Browser.getDefaultSession().displayPage("http://appworld.blackberry.com/webstore/content/2360/?lang=en");

Above code will invoke the browser in the application and open the BlackBerry App World, I tested it in device and it's perfectly working. For now I put a Whats App messenger link, but you can customize the link according to your requirement.

rfsk2010

You can open App World from your BB application directly using the following code. This code avoids opening the browser first.

Registry registry = Registry.getRegistry(this.getClass().getName());
Invocation invocation = new Invocation(null, null, 
                                       "net.rim.bb.appworld.Content", 
                                       false, ContentHandler.ACTION_OPEN);
invocation.setArgs(new String[] { /* app id in appworld */ });
registry.invoke(invocation);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!