如何从黑莓浏览器中启动应用程序 [英] How to launch an application from the browser in BlackBerry

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

问题描述

我如何从BlackBerry浏览器中启动的设备上安装的应用程序?我的应用程序的详细信息:

如果没有登录凭据,用户可以不必申请进一步的访问,因此在应用程序启动有两个按钮,一个用于登记和其他用于记录。下面是它如何工作的。


  1. 未注册用户启动应用程序,并点击注册按钮。

  2. 调用与注册URL黑莓浏览器。

  3. 在用户完成注册过程,并在注册成功页面会有一个链接到启动应用程序。

是否有这黑莓任何可能性?它可以在iPhone上。


解决方案

  1. 给您www.example.com网页上任何唯一的链接,例如:

  2. 在您的应用程序注册httpfilter,

    HttpFilterRegistry.registerFilter(www.example.com,com.sample.filter);


  3. com.sample.filter是,你必须创建Protocol.java类来处理回呼包。


有关更多信息,请附带黑莓JDE的HTTPFilterDemo样本。

How do I launch the installed application on a device from the BlackBerry browser? My application details:

Without login credentials the user cannot have further access to the application, so on application start there are two buttons, one for registration and other for logging in. Here is how it has to work.

  1. The unregistered user starts the application, and clicks the registration button.
  2. Invoke the BlackBerry browser with the registration URL.
  3. The user completes the registration process and on successful registration the page will have a link to the launch application.

Are there any possibilities in BlackBerry for this? It is possible on the iPhone.

解决方案

  1. Give any unique link on your web page, for example www.example.com
  2. register httpfilter in your application,

    HttpFilterRegistry.registerFilter("www.example.com", "com.sample.filter");

  3. "com.sample.filter" is a package in which you have to create the Protocol.java class to handle the call back.

For more information, check the "HTTPFilterDemo" sample included with the BlackBerry JDE.

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

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