黑莓移动网络应用程序快捷方式
我想提供一个选项来下载我的移动网站的黑莓快捷方式。据我了解,我需要这样的链接:
<a href="desc.jad" type="text/vnd.sun.j2me.app-descriptor">download shortcut</a>
jad 文件包含 jar 文件、图标图像等的纯文本描述。我以前从未使用过 Blackberry SDK,因此如果有人能够解释向用户提供此类功能的步骤,我将非常感激。我是否需要从头开始创建应用程序,或者是否有一种简单的方法来创建移动 Web 应用程序快捷方式?
您可以在 espn.com 移动网站上查看示例。
I want to provide an option to download blackberry shortcut of my mobile site. As far as I understand I need a link like this:
<a href="desc.jad" type="text/vnd.sun.j2me.app-descriptor">download shortcut</a>
And jad file contains description of a jar file, icon image etc. in plain text. I've never used Blackberry SDK before, so I'd really appreciate it if someone can explain the steps to provide this kind of functionality to users. Do I need to create an application from scratch or is there a a straightforward way to create mobile web app shortcuts?
You can see an example at espn.com mobile site.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要同时拥有
.jad
(描述符)和.cod
(二进制)文件将它们放在您的网络服务器上的同一文件夹中。然后创建指向
.jad
文件的链接,就像现在一样。您可能需要设置 mime 类型(这取决于您的网络服务器)
或者您可以将其设置在
.htaccess
文件中,如下所示:另外,您阅读过本指南吗?
http://supportforums.blackberry.com/rim/attachments/rim/Testing_and_Deployment_of_Applications@tkb/117/1/How_to_Deploy_and_Distribute_Applications_V1.pdf
您想要“无线”部署,第 页17.
它几乎解释了我上面写的所有内容。
You need to have both a
.jad
(descriptor) and a.cod
(binary) filePut them on you web server in the same folder. Then create the link to point to the
.jad
file as you have now.You probably need to set the mime types (this varies depending your web server)
OR you can set it in a
.htaccess
file like this:Also, have you read this guide?
http://supportforums.blackberry.com/rim/attachments/rim/Testing_and_Deployment_of_Applications@tkb/117/1/How_to_Deploy_and_Distribute_Applications_V1.pdf
You want to do deploy "Over the Air", on page 17.
It pretty much explains everything I just wrote above.