如何从应用程序中启动AppWorld? [黑莓] [英] How to launch AppWorld from an application? [BlackBerry]

查看:192
本文介绍了如何从应用程序中启动AppWorld? [黑莓]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个简单的问题,但我无法找到解决办法。我想通过点击我的BB应用程序的按钮来打开AppWorld。例如,当用户点击这个按钮Appworld会显示Facebook应用程序页面。我能做到这一点?

在Android平台这条线展开GOOGLEPLAY为Facebook应用程序。黑莓手机是否支持这种方法?

  startActivity(新意图(Intent.ACTION_VIEW,Uri.parse(市场://细节ID = com.facebook.katana)));


解决方案

下面是一个简单的方法来做到这一点:

<$p$p><$c$c>Browser.getDefaultSession().displayPage(\"http://appworld.blackberry.com/webstore/content/2360/?lang=en\");

以上code将调用应用程序在浏览器和打开的黑莓应用程序世界的,我测试了它的设备和它的工作完美。现在我把的请告诉我应用使者的链接,但您可以根据您的要求定制的链接。

This might be a easy question but i couldn't find solution. I want to open AppWorld by clicking a button in my BB application. For example when user clicks this button Appworld will show "Facebook Application" page. Can i do this?

In Android platform this line launches GooglePlay for Facebook App. Does BlackBerry supports this kind of method?

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("market://details?id=com.facebook.katana")));

解决方案

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.

这篇关于如何从应用程序中启动AppWorld? [黑莓]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆