这可能是一个简单的问题,但我找不到答案。我想通过单击BB应用程序中的一个按钮来打开AppWorld。例如,当用户点击此按钮时,Appworld将显示"Facebook应用程序“页面。我能这么做吗?
在安卓平台上,这条线启动了GooglePlay for Facebook App。BlackBerry是否支持这种方法?
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.facebook.katana")));发布于 2012-10-01 23:09:13
下面是一种简单的方法:
Browser.getDefaultSession().displayPage("http://appworld.blackberry.com/webstore/content/2360/?lang=en");上面的代码将在应用程序中调用浏览器并打开BlackBerry应用程序世界,我在设备中对其进行了测试,它工作正常。现在我放了一个Whats App messenger链接,但是你可以根据你的需求定制这个链接。
发布于 2012-10-05 17:34:45
您可以使用以下代码直接从您的BB应用程序打开App World。此代码避免首先打开浏览器。
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);https://stackoverflow.com/questions/12673706
复制相似问题