porting android apps to black berry10 in 3 minutes - themobileshow2014
TRANSCRIPT
Porting Android Apps to BlackBerry 10in 3 Minutes
Kareem ElSayed
Application Development Advisor - EMEA
@kemobyte
Rami AlZoubi
Senior Business Development Manager - EMEA
Why develop for BlackBerry 10The Future Platform for Mobile Computing
Rami Alzoubi
Senior Alliances and Business Development Manager
BlackBerry Middle East
August 30, 2015
3
Storefront Reach170 Markets, 23 currencies, 33 languages
supported
Over 5 Billion apps downloaded; 6 million apps
downloaded daily
Over 140,000 Apps approved for sale
UAE/KSA is on the top 10 Globally in terms
of downloads per country
Carrier Billing with Etisalat,STC,Mobily, Ooredo and
Watanyia -Kuwait
Where Developers Make Money
BlackBerry World has more paid
downloads per month than the Android
Market
Carrier Billing with more than 75
carriers globally
BlackBerry apps generate 40% more
revenue than Android appsEmailSocial
Blackberr
y.
com
PRTV/
Video
Where Developers Make Money
13% of BlackBerry developers make
over $100,000 from BlackBerry World
apps, which is considerably more than
Android or Apple developers…”
19% of BlackBerry World participants
say they had 1,000 or more downloads
over the 30 days”
Evans Data Corporation,
September 2011 Application Distribution Survey
EmailSocial
Blackberr
y.
com
PRTV/
Video
We Put Developers FirstA better app store to sell from
Direct support for top developers
Dedicated developer events
A more active developer community
Earlier access to resources at
BlackBerry
The right tools, including Dev Alpha
devices.
C/C++/Qt
Native SDK
ActionScript
Adobe® AIR®HTML5
WebWorks™
Jelly bean
Android™
Runtime
BB10 Apps
BB10 Apps
1030 August 2015 Internal Use Only
And much more is
coming……
But if you don’t find your
app, still you can get it
through your favourite
store
So since its available let
us have it on our store
BlackBerry Runtime for Android Apps
12
Open-source Jelly Bean (Android
4.2.2) Application Framework running
on top of BlackBerry 10 OS and
Libraries
Enables repackaged Android apps to
be installed and run inside it
Deep integration with BB native
framework to make Android apps
indistinguishable from native apps
Repackaging your Android app can
take as little as 3 minutesdeveloper.blackberry.com/android
BlackBerry 10 OSQNX
Android RuntimeDalvik VM
User discovers APK file,
reviews Disclaimer, and
chooses to install
User acknowledges
Settings and Permissions
Install initiates User can open app or
access via homescreen icon
Broader Reach:APK Direct Install – A Closer Look
1 2 3 4
BLACKBERRY RUNTIME FOR
ANDROID : ROADMAP UPDATE
Android Roadmap
10.3 Beta – May 2014
15
Android Roadmap
10.2.1 Gold– January 2014
16
Android Roadmap
10.2 - August 2013 Android 4.2.2 (Jelly Bean/API 17)
Improved Stability
Support for the end-user to hide/show back bar
17
ANDROID UNSUPPORTED APIS
Unsupported APIs
19
Around 80% of all Android apps are compatible today on BlackBerry 10.2.1 requiring no changes to source code
Not all Android APIs are supported
Hardware and OS dependencies
Limited to the personal perimeter
Full compatibility list is available at developer.blackberry.com/android/apisupport
Push Support
20
Both c2dm and GCM are supported:
Client
Register with BlackBerry Push Services
Create android.cfg file
Package the android.cfg file within BAR
Sign app
Server
Push JSON payload to both Google &
BlackBerry app servers
Pushes are queued until app is open
developer.blackberry.com/android/apisupport/creating_push-enabled_android_apps.html
<?xml version="1.0" encoding="utf-8"?>
<android>
<push>
<appid>some_appID</appid>
<ppgurl>http://cpXXX.pushapi.eval.blackberry.com</ppgurl>
<tokenprefix>bb-</tokenprefix>
</push>
</android>
In-App Billing Support
21
Test using BlackBerry World sandbox
Use the same ItemID values for your
digitalSKU items in vendor portal
One-time purchases, no subscriptions, no
refunds through API
Transactions are not signedjava.lang.System.getProperty("os.name") returns ("qnx")
android.os.Build.DEVICE returns “Q10”, “Q5”, “Z10”, or “Z30”
developer.blackberry.com/android/apisupport/apisupport_inapp_payments_support.html
BLACKBERRY TOOLS FOR
ANDROID
Verify Repackage Deploy
Repackaging Android Apps
developer.blackberry.com/android
Verify
- Run blackberry-apkpackager to generate a *.WRN file which will call out unsupported
APIs and repackage the APK to a BAR file
Repackage
- Run blackberry-signer to sign the BAR file
Deploy
- Run blackberry-deploy on an up-to-date OS, testing functions called out in the *.WRN file
DEMO
DEVICES
Icon: 114 x 114 pixels
Resolution: 1280 x 768 (15:9)
Screen size: 4.2” diagonal
Project structure: res/drawable-xhdpi
Current OS: BlackBerry 10.2.1
Testing: BlackBerry 10 Device Simulator
developer.blackberry.com/android/documentation/port_android_app_to_bb_device.html
BlackBerry 10 Devices► BlackBerry Z10
Icon: 114 x 114 pixels
Resolution: 1280 x 720 (16:9)
Screen size: 5” diagonal Super AMOLED
Project structure: res/drawable-xhdpi
Current OS: BlackBerry 10.2.1
Testing: BlackBerry 10 Device Simulator
developer.blackberry.com/android/documentation/port_android_app_to_bb_device.html
BlackBerry 10 Devices► BlackBerry Z30
Icon: 114 x 114 pixels
Resolution: 720x 720 (1:1)
Screen size: 3.1” diagonal
Project structure: res/drawable-square
Current OS: BlackBerry 10.2.1
Testing: BlackBerry 10 Device Simulator
developer.blackberry.com/android/documentation/port_android_app_to_bb_device.html
BlackBerry 10 Devices► BlackBerry Q10
Icon: 114 x 114 pixels
Resolution: 720x 720 (1:1)
Screen size: 3.1” diagonal
Project structure: res/drawable-square
Current OS: BlackBerry 10.2.1
Testing: BlackBerry 10 Device Simulator
developer.blackberry.com/android/documentation/port_android_app_to_bb_device.html
BlackBerry 10 Devices► BlackBerry Q5
Device OS autoloaders
https://developer.blackberry.com/blackberry10devalphas/update/
Simulator & SDK download
https://developer.blackberry.com/android/tools/
Pulling Android logs
http://devblog.blackberry.com/2013/11/pull-android-logs-from-your-blackberry/
Programmatically disabling the back bar
http://devblog.blackberry.com/2013/12/android-developers-eliminate-the-back-bar-in-
your-10-2-1-app/
developer.blackberry.com/android/
Additional Resources
LEARN MORE @
DEVELOPER.BLACKBERRY.COM
3230 August 2015 Public
ANDROID OFFER
PORT YOUR ANDROID
APP DURING THE
MOBILE SHOW AND WIN
BLACKBERRY10 DEVICE
STEPS TO WIN
appworld.blackberry.com/isvportal/home.do
Register @ BlackBerry World (FREE)
Send email to [email protected] with your BlackBerry ID for approval
Test your app on BlackBerry 10 Simulator
Repackage your App to a BAR file
Submit your App to BlackBerry World
THANK YOUQUESTIONS
@kemobyte
THANK YOU
Kareem ElSayed
Application Development Advisor - EMEA
Rami AlZoubi
Senior Business Development Manager - EMEA