Running Android Applications on Black Berry Play Book
Running Android Applications on Black. Berry Play. Book and Black. Berry 10 developer. blackberry. com/android Prakash Sainani & Ranbijay Kumar Developer Relations – Research In Motion
Overview Demo BB Runtime for Android Apps Upcoming Releases Converting Existing Applications BB Development Basics BB App World Q&A 2
What’s BB Runtime for Android Apps? Core Apps App 1 App 2 App 3 …. Application Framework Core Android Apps Activity Mgr Window Mgr View System Package Mgr Resource Mgr Location Mgr Library Java Runtime Free. Type SGL Web. Kit Open. GL ES Surface Mgr Media Fwk Notification Mgr Core Libraries Dalvik Virtual Machine SQLite SSL ► It’s Android Open source v 2. 3. 3 aka “Gingerbread” Application Framework running on top of Playbook/BB 10 OS and Libraries libc Black. Berry Play. Book/BB 10 OS ► Enables Android apps to be installed and run inside it ► Deep integration with BB native framework with the objective to make Android app indistinguishable from native apps 3
BB Runtime for Android Apps, version 2. 1 Compatibility About 75% of Android apps are fully compatible (no code changes) Not all Android APIs are supported Time constraints Certain APIs are used by very few % of the apps Hardware and native OS limitations Unsupported features in Play. Book 2. 1 Telephony NDK Barometer Bluetooth NFC Proximity sensor VOIP Google Maps C 2 DM 4
Want to use Google Maps? Support for location based intents to display maps Use Web. View + web services (Google, Bing, etc. ) to display map content within apps More details on mapping support can be found on the API Support Page developer. blackberry. com/android/apisupport 5
Upcoming Releases Play. Book 2. 1 and Black. Berry 10 developer. blackberry. com/android 6
Play. Book 2. 1 OS Update Black. Berry Runtime for Android Apps Improved Usability Multi-Window support Stability Improved Compatibility Camera APIs Front and Rear Camera Support Video Recording In-app Payments Android Market. Billing. Service API is supported 7
Black. Berry 10 Black. Berry Runtime for Android Apps Improved Usability Integration with virtual keyboard Black. Berry Permission Prompts Support for BB 10 screen resolution Intents invoke core BB 10 apps Notifications mapped to BB 10 Improved Compatibility PIM APIs Telephony APIs ► 4. 2″ screen ► 1280× 768 resolution ► Micro USB ► Micro HDMI ► Bluetooth, Wi. Fi, micro. SIM 8
Converting Existing Android Apps developer. blackberry. com/android 9
Converting Existing Android Apps Tools Online Conversion Tool Eclipse Plug-in Command-line Tools Simulators Basic concepts Code Signing Development Debug Tokens 10
Converting existing Android apps ► online packager developer. blackberry. com/android 11
Converting existing Android apps ► online packager developer. blackberry. com/android 12
Converting existing Android apps ► online packager developer. blackberry. com/android 13
Converting existing Android apps ► command line tools Repackage your APK to a BAR file in 4 easy steps… 1) apk 2 bar. Verifier C: Androidandroid-sdkbin> apk 2 bar Hello. World. apk - run a compatibility check on your APK file 2) apk 2 bar - packages your APK file as a BAR file 3) batchbar-signer - sign your application 4) blackberry-deploy - deploy your app 14
Converting existing Android apps ► Black. Berry Plug-in for ADT Plug-in for Eclipse + Black. Berry Plug-in for ADT Play. Book is just another device target for your existing Android project Debug applications on Play. Book just like on other Android devices adb, ddms, jdwp, logcat, etc. Use the same IDE & project, BB plug-in adds the functionality to test/debug/package against Black. Berry devices 15
Black. Berry Development Basics developer. blackberry. com/android 16
Play. Book/BB 10 development basics BAR files A BAR file is the native Play. Book/Black. Berry 10 application package What APK files are for Android BAR files are for Black. Berry BAR files contain executables, images, media, etc. blackberry-deploy: load a packaged app onto the device The device has to be in development mode 17
Play. Book/BB 10 development basics Development mode 18
Important Link Black. Berry Runtime for Android apps homepage developer. blackberry. com/android/ 19
THANK YOU psainani@rim. com developer. blackberry. com/android rankumar@rim. com
- Slides: 20