Cordova BlackBerry Distribution
===============================
Cordova BlackBerry is a framework that allows for Cordova based projects to be built for the [BlackBerry WebWorks Platform](https://bdsc.webapps.blackberry.com/html5/). Cordova based applications are, at the core, an application written with web technology: HTML, CSS and JavaScript. The Cordova BlackBerry project allows web developers to develop applications targeting BlackBerry OS 5.0+ and PlayBook devices using the common [Cordova API](http://docs.phonegap.com).
Apache Cordova is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator project. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
Pre-requisites
--------------
- Windows XP (32-bit) or Windows 7 (32-bit and 64-bit) or Mac OSX 10.6.4+
- Java JDK 1.5
- Apache ANT
- [BlackBerry WebWorks SDK](https://bdsc.webapps.blackberry.com/html5/download/sdk)
- PlayBook development requires [Adobe Air SDK](http://www.adobe.com/devnet/air/air-sdk-download.html)
Directory Structure
-------------------
sample/ ... Ready-to-run sample project
www/ ...... Barebones project assets
### Ready-to-Run Sample Project
The quickest way to get started with Cordova BlackBerry is to make a copy of the `sample` folder. The `sample` folder is a complete Cordova BlackBerry project including build scripts. Copy the `sample` folder to a desired location to create a new Cordova BlackBerry project.
#### Building and Deploying a Project
The build scripts included in the `sample` folder automate common tasks, such as compiling your project, and deploying it to simulators or devices. To see what options are available, use:
$ cd C:\development\my_new_project
$ ant help
Every command is in the form `ant TARGET COMMAND [options]`, where
target is either `blackberry` or `playbook`.
To build your project into a deployable application (.cod/.jad) file:
$ ant TARGET build
To build your project and load it in a BlackBerry simulator:
$ ant TARGET load-simulator
To build your project and load it onto a USB-attached device:
$ ant TARGET load-device
### Barebones Project Assets
The `www` folder contains the Cordova specific assets that must be available in a BlackBerry WebWorks project. If you have an existing BlackBerry WebWorks project, copy/merge these files into your project to enable the project for Cordova.
ext/cordova.jar - Native Cordova API implementations for smartphones.
ext-air/ - PlayBook Adobe Air extensions for Cordova API.
playbook/cordova.js - PlayBook Cordova JavaScript API.
cordova.js - Smartphone Cordova JavaScript API.
config.xml - BlackBerry WebWorks configuration file.
plugins.xml - Cordova plugin configuration file.
`config.xml` is a sample that you are free to alter or merge with an existing BlackBerry WebWorks configuration file. The necessary Cordova sections are contained in the `<feature>` and `<access>` sections:
<!-- Cordova API -->
<feature ... />
<feature ... />
<!-- Cordova API -->
<access ... />
<access ... />
Frequently Asked Questions
--------------------------
__Q: My simulator screen is not refreshing and I see blocks on a clicked position.__
__A:__ Windows 7 and the simulator's graphics acceleration do not mix. On the simulator, set View -> Graphics Acceleration to Off.
__Q: When I use the Cordova [Camera.getPicture API](http://docs.phonegap.com/phonegap_camera_camera.md.html#camera.getPicture) on my device, the camera never returns to my application. Why does this happen?__
__A:__ Cordova uses a JavaScript Extension to invoke the native camera application so the user can take a picture. When the picture is taken, Cordova will close the native camera application by emulating a key injection (pressing the back/escape button). On a physical device, users will have to set permissions to allow the application to simulate key injections. Setting application permissions is device-specific. On a Storm2 (9550), for example, select the BlackBerry button from the Home screen to get to All Applications screen, then Options > Applications > Your Application. Then select Edit Default Permissions > Interactions > Input Simulation and set it to 'Allow'. Save your changes.
__Q: None of the Cordova APIs are working, why is that?__
__A:__ You probably need to update your plugins.xml file in the root of your application.
Additional Information
----------------------
- [Cordova home](http://incubator.apache.org/cordova/)
- [Cordova Documentation](http://docs.phonegap.com)
- [Cordova Issue Tracker](https://issues.apache.org/jira/browse/CB)
- [BlackBerry WebWorks Framework](https://bdsc.webapps.blackberry.com/html5/)
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
phonegap-phonegap-1.6.0-0-g66780d6.rar_android_ios框架_phonegap (536个子文件)
Network.as 3KB
Network.as 3KB
Network.as 3KB
cordova.bat 164B
changelog 13KB
ContactAccessorSdk5.class 31KB
DroidGap.class 23KB
FileUtils.class 20KB
FileTransfer.class 12KB
CameraLauncher.class 12KB
Capture.class 10KB
AudioPlayer.class 9KB
PluginManager.class 8KB
CordovaChromeClient.class 8KB
CordovaWebViewClient.class 7KB
AudioHandler.class 7KB
CallbackServer.class 6KB
AccelListener.class 6KB
Notification.class 6KB
CompassListener.class 6KB
NetworkManager.class 5KB
Storage.class 5KB
App.class 5KB
Device.class 4KB
BatteryListener.class 4KB
ContactAccessor.class 4KB
GeoBroker.class 4KB
PluginResult.class 3KB
Plugin.class 3KB
ContactManager.class 3KB
GpsListener.class 3KB
NetworkListener.class 3KB
LOG.class 3KB
GeoListener.class 3KB
ExifHelper.class 3KB
TempListener.class 3KB
DirectoryManager.class 2KB
DroidGap$1.class 2KB
HttpHandler.class 2KB
Notification$2.class 2KB
PluginManager$1.class 2KB
PluginEntry.class 2KB
LinearLayoutSoftKeyboardDetect.class 2KB
Notification$1.class 2KB
Notification$4.class 2KB
Device$1.class 2KB
CordovaInterface.class 2KB
DroidGap$7.class 2KB
PluginResult$Status.class 2KB
DroidGap$1$1.class 2KB
FileUploadResult.class 2KB
Notification$3.class 2KB
PluginResult.class 2KB
PreferenceSet.class 2KB
CordovaChromeClient$8.class 1KB
DroidGap$3.class 1KB
Notification$1$1.class 1KB
Notification$2$1.class 1KB
Notification$2$3.class 1KB
Notification$2$2.class 1KB
DroidGap$6.class 1KB
CordovaWebViewClient$1$1.class 1KB
CordovaChromeClient$7.class 1KB
CordovaChromeClient$3.class 1KB
CordovaWebViewClient$1.class 1KB
CordovaChromeClient$9.class 1KB
FileTransfer$2.class 1KB
CordovaChromeClient$4.class 1KB
CordovaChromeClient$5.class 1KB
CordovaChromeClient$1.class 1KB
CordovaChromeClient$6.class 1KB
CordovaChromeClient$2.class 1KB
NetworkManager$1.class 1KB
ContactAccessor$WhereOptions.class 1KB
DroidGap$7$1.class 1007B
Notification$4$1.class 995B
Notification$3$1.class 994B
BatteryListener$1.class 976B
DroidGap$4.class 959B
DroidGap$5.class 865B
DroidGap$2.class 841B
AuthenticationToken.class 776B
IPlugin.class 666B
FileTransfer$1.class 648B
StandAlone.class 565B
PreferenceNode.class 514B
PluginManager.class 492B
NoModificationAllowedException.class 430B
InvalidModificationException.class 424B
TypeMismatchException.class 403B
FileExistsException.class 393B
EncodingException.class 391B
PhonegapActivity.class 358B
BuildConfig.class 345B
Plugin.class 290B
LOG.class 278B
IPlugin.class 150B
config 106B
Contacts.cpp 18KB
WebForm.cpp 5KB
共 536 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
邓凌佳
- 粉丝: 65
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于matlab实现用有限元法计算电磁场的Matlab工具 .rar
- 基于matlab实现有限元算法 计算电磁场问题 边界条件包括第一类边界和第二类边界.rar
- 基于matlab实现用于计算不同车重下的电动汽车动力性和经济性.rar
- 基于matlab实现遗传算法求解多车场车辆路径问题 有多组算例可以用.rar
- 浏览器.apk
- 基于matlab实现是一个matlab中的power system 中搭建的一个模型
- 基于JSP毕业设计-教学管理系统(源代码+论文).zip
- 基于JSP毕业设计-家政管理系统-毕业设计.zip
- 基于Python实现淘宝商品评论采集(含逆向)源代码
- 基于matlab实现多目标进化算法NSGAⅡ&Matlab讲解.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功