我正在开发一个BlackBerry Phonegap应用程序,我想设置应用程序的方向为纵向。为此,我在config.xml文件中添加了<preference name="orientation" value="portrait" />
,但它不起作用。如何设置黑莓手机的方向?
我正在使用Phonegap版本2.4.0。任何人都可以帮助我设定方向吗?
我正在开发一个BlackBerry Phonegap应用程序,我想设置应用程序的方向为纵向。为此,我在config.xml文件中添加了<preference name="orientation" value="portrait" />
,但它不起作用。如何设置黑莓手机的方向?
我正在使用Phonegap版本2.4.0。任何人都可以帮助我设定方向吗?
你要锁定这样的方向,在你的config.xml文件
<feature id="blackberry.app">
<param name="orientation" value="portrait" />
</feature>
为config.xml中的文档可以在这里找到 - http://developer.blackberry.com/html5/documentation/param_element.html
<rim:orientation mode="portrait" />
在您的config.xml。 Requires WebWorks SDK 2.3 or later。
嗨chadtatro此功能只适用于黑莓10操作系统,但我使用的是黑莓6和7 ..你有任何方法操作系统? – 2013-02-28 05:47:38
@EktaShukla,请参阅下面的答案。 WebWorks SDK 2.3或更高版本应支持OS 6和7。 – Nate 2013-07-24 09:03:28