2013-11-26 46 views

回答

1

如何运行具有Sencha BB10 Phonegap/Cordova Webworks的项目?

框架

煎茶:为构建任何设备上运行的应用程序的通用基于HTML5的应用程序开发工具和服务。

PhoneGap/Cordova:我们使用2.7及以下版本。与cordova-cli一样,由于某些版本不兼容问题,我们无法为BB10创建版本。

WebWorks:不要混淆这个,因为这需要运行一些命令来移植应用程序到BB10手机。 BlackBerry 10 WebWorks SDK支持在 javascript + html平台上为BlackBerry 10 OS开发应用程序。

设备:BB10

步骤

第1步:在BB10

运行的PhoneGap

下载手机峡版本(我们下载2.7)

> Follow the steps mentioned in this link 
      [Click Here][1] 
       https://github.com/ctetreault/incubator-cordova-docs/blob/master/docs/en/edge/guide/getting-started/blackberry/index.md 

    > Create New Project from above step and run on device. 

    > Good to go for next step. Now Your project has all the features from Phonegap working in BB10 (like Camera, geolocation....). Generally controlled by plugin.xml and config.xml. Though there are few BB10 specific features or enteries like <rim:permissions> which is required by BB device to access core features 

步骤2 由于Sencha不直接支持BB10 。所以,请执行以下步骤来对BB10(的PhoneGap项目)运行煎茶事情

> Go inside the build folder in Sencha project published by Sencha Touch App/Architect. 

> Copy all the contents (resources, splash, touch, all js) from the package/<App Name> folder (this folder depends upon Sencha cmd build) to 
    the BB10 phonegap www folder. 

    > Remember not to overide config.xml as BB10 has it's separate config.xml having some of it's specific features. 

    > Now open index.html and change the import of phonegap.js to the specific version you are using. Check inside BB10 phonegap project you will find specific cordova2.XXX.js 

按照这些步骤,希望你最终会微笑。

+0

感谢user2790034这工作像魅力..也提到的链接是 [这里](https://github.com/ctetreault/incubator-cordova-docs/blob/master/docs/en/edge/guide/getting -started/blackberry/index.md) –

+0

我可以在3.1上运行它[现在看它](http://techbirds.in/?p=500)。对于Sencha构建。使用sencha cmd'sencha build app package'进行适当的构建。现在将'/build/package/'放到您的Cordova项目的www文件夹中。建立你的科尔多瓦项目。我认为只要您在index.html文件中使用'',以及cordova的相应API调用摄像头和其他设备功能,它就可以工作。 –