Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

34
Porting Android Apps to BlackBerry 10 in 3 Minutes Kareem ElSayed Application Development Advisor - EMEA [email protected] @kemobyte Rami AlZoubi Senior Business Development Manager - EMEA [email protected]

Transcript of Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

Page 1: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

Porting Android Apps to BlackBerry 10in 3 Minutes

Kareem ElSayed

Application Development Advisor - EMEA

[email protected]

@kemobyte

Rami AlZoubi

Senior Business Development Manager - EMEA

[email protected]

Page 2: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

Why develop for BlackBerry 10The Future Platform for Mobile Computing

Rami Alzoubi

Senior Alliances and Business Development Manager

BlackBerry Middle East

August 30, 2015

Page 3: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 4: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 5: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 6: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 7: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014
Page 8: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

BB10 Apps

Page 9: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

BB10 Apps

Page 10: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 11: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

LET’S ROCK IT

Kareem ElSayed

Application Development Advisor - EMEA

[email protected]

@kemobyte

Page 12: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 13: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 14: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

BLACKBERRY RUNTIME FOR

ANDROID : ROADMAP UPDATE

Page 15: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

Android Roadmap

10.3 Beta – May 2014

15

Page 16: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

Android Roadmap

10.2.1 Gold– January 2014

16

Page 17: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 18: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

ANDROID UNSUPPORTED APIS

Page 19: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 20: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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>

Page 21: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 22: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

BLACKBERRY TOOLS FOR

ANDROID

Page 23: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 24: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

DEMO

Page 25: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

DEVICES

Page 26: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 27: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 28: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 29: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 30: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 31: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

LEARN MORE @

DEVELOPER.BLACKBERRY.COM

Page 32: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

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

Page 33: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

THANK YOUQUESTIONS

Page 34: Porting android apps to black berry10 in 3 Minutes - TheMobileShow2014

@kemobyte

THANK YOU

Kareem ElSayed

Application Development Advisor - EMEA

[email protected]

Rami AlZoubi

Senior Business Development Manager - EMEA

[email protected]