porting android apps to blackberry 10

18
Larry McDonough BlackBerry Developer Relations @LMcDunna Running Android Apps on BlackBerry 10 developer.blackberry.com/android

Upload: larry-mcdonough

Post on 06-May-2015

1.715 views

Category:

Documents


0 download

DESCRIPTION

Presented to the Google Developer Group in Dublin, CA on 5/6/13 This presentation outlines the development platform on BlackBerry 10 and then dives deeper into the BlackBerry Runtime for Android Apps and how Android developers can port their apps. Not in the slide deck: The BlackBerry 10 device demo, the live porting of apps.

TRANSCRIPT

Page 1: Porting Android Apps to BlackBerry 10

Larry McDonoughBlackBerry Developer Relations@LMcDunna

Running Android Apps on BlackBerry 10

developer.blackberry.com/android

Page 2: Porting Android Apps to BlackBerry 10

Agenda• BlackBerry 10 Demo

• Developing for BlackBerry 10

• The BlackBerry Runtime for Android Apps

• App Porting… Live on stage! What could go wrong?

• Q & A

• Raffle

Page 3: Porting Android Apps to BlackBerry 10

Launched on January 30th, 2013

Device Demo• The Hub• Time Shift• Balance• Keyboard

Page 4: Porting Android Apps to BlackBerry 10

Where Did BlackBerry 10 Come From?

4

BlackBerry® PlayBook™

HTML5 WebWorks

BlackBerry 10TM

http://developer.blackberry.com

Page 5: Porting Android Apps to BlackBerry 10

High Level Architecture

BlackBerry Services(BES / Mobile Fusion, BIS, Push, Maps, Payments, BBM, Scoreloop, etc.)

HTML 5 & WebWorks

Native C/C++ &Cascades UI

BlackBerry 10 OS

http://developer.blackberry.com

Page 6: Porting Android Apps to BlackBerry 10

Developers have ChoicesRuntimes & Frameworks

ActionScript

Adobe AIRHTML5, CSS, JavaScript

WebWorksC/C++

Native SDK

Java

AndroidRuntime

Page 7: Porting Android Apps to BlackBerry 10

What’s So Great About BlackBerry 10?

World’s best OS built on QNX, Best RTOS on the planet

Worlds best browser Highest score on html5test.com beating out even all desktop

browsers! World’s best keyboards – Physical && Virtual

Head and shoulders above iPhone World’s best developer platform

Choices: C/C++ l HTML5 l AIR l Android Open: Lots of projects on GitHub: https://github.com/blackberry

Designed from ground up for today/tomorrow’s mobile computing needs

UI/UX designed for PRODUCTIVITY Best Damn Developer Relations Team in the World

http://developer.blackberry.com/android 7

BlackBerry Z10

Page 8: Porting Android Apps to BlackBerry 10

Global marketplace FREE to register as a vendor FREE to submit apps and upgrades 70/30 revenue share Credit card, PayPal, Carrier Billing Free and paid apps catalog Integrated barcode scanning

8

BlackBerry World

Page 9: Porting Android Apps to BlackBerry 10

The Power of Carrier Billing on BlackBerry 10

Carrier Billing: integrated operator billing allows for easy payment for digital content Carrier billing is the preferred payment option in BlackBerry World, accounting for over

75% of all paid transactions when available. 9x average increase in spending per BlackBerry Z10 user purchasing apps & games. 14x average increase in spending per BlackBerry Z10 user purchasing content

including apps, games, music, and video.

* Bango Sourced Data

Increases Customer Reach and Retention*Makes Payments

Flexible & Easy

Carrier billing is initial default payment

option attracting new customers.

29% of BlackBerry World users buy 2 or

more items per month

13% of BlackBerry World users spend

more than $4.99/month

100~300% uplift to BlackBerry World sales when carrier

billing launches

75% of gross sales are transacted

through the carrier when available

Carrier Channel, in-app, and

Subscriptions

Drives Sales & Revenue

57%22%

3%

18%

Apps

Games

Video

Music

BlackBerry 10 – BlackBerry World by content type

breakdown

Page 10: Porting Android Apps to BlackBerry 10

10

Opportunities on BlackBerry World

80+ Million Subscribers, > 170 Markets 105,000++ Apps for Sale

More Revenue per App Lower Cost to Develop Easy to Port

Credit card, PayPal & Carrier Billing 70/30 revenue share Free, paid, “freemium” apps Ecosystem success Over 4 Billion Apps Downloaded

Page 11: Porting Android Apps to BlackBerry 10

BlackBerry Runtime for Android Apps

NOT AN “EMULATOR”

11developer.blackberry.com/android

Page 12: Porting Android Apps to BlackBerry 10

BlackBerry Runtime for Android Apps

NOT AN “EMULATOR” OSS Dalvik VM ported directly to native QNX

~70% of all Android apps RUN on BlackBerry 10 without changing a SINGLE line of code!

Very Easy to get started.

12developer.blackberry.com/android

Dalvik VM

WebKitC++ AIR

Page 13: Porting Android Apps to BlackBerry 10

Check Compatibility(Online Tool)

Tooling Options► Online Packager► SDK (Command Line)► Eclipse Plug-in

Re-package APK to BAR file format.

De-bugging tokens

Test Application

Code signing Key

Sign application(BAR files)

Access Vendor Portal

Submit App for BlackBerry Approval

Publish signed BAR files

Run reports

Package Deploy Distribute

Converting Your Existing Android Apps

developer.blackberry.com/android

Page 14: Porting Android Apps to BlackBerry 10

Getting Started…

1. Request a set of BlackBerry 10 signature keys from https://www.BlackBerry.com/SignedKeys

• Two *.CSJ file attachments will be emailed within 30 minutes, which are to be added into the IDE in step 3 below

2. If necessary, download device simulators from https://developer.blackberry.com/android/tools/

3. Install the BlackBerry plug-in for ADT within your IDE (i.e., ADT plug-in for eclipse), by selecting Help → Add New Software → Add and provide the URL http://developer.blackberry.com/android/downloads/eclipseplugin/

4. Set up your environment by selecting Window → Preferences → BlackBerry → Expand BlackBerry Tools SDK → Bar Signer → BlackBerry Deployment Setup Wizard

• Walk through the wizard to set up your simulator(s) or device(s), register your signature

14developer.blackberry.com/android

Dalvik VM

developer.blackberry.com/android

Page 15: Porting Android Apps to BlackBerry 10

Getting Started…

After setting up the environment, use of the plug-in is very straightforward as it uses all of the standard operations within eclipse that Android developers would use such as adb, ddms, jdwp, logcat, etc. The following steps will allow you to check your app for compatibility, repackage, and sign your application:

1. Add the BlackBerry perspective to your Android project • Right-click on the project and select BlackBerry Tools → Add BlackBerry Nature to Project

2. Verify the compatibility of your app • Right-click on the project and select BlackBerry Tools → Verify APK • Within the <project>/bin project folder, open the <project>.WRN file and view the results

Level 1 and 2 errors are usually negligible, but these features should be tested Level 3 errors require supported workarounds for Google Maps, Push and IAP Level 4 and 5 errors are fatal and will cause the app to crash

3. If necessary, make the required code changes while running/debugging the application 1. Right-click on the project and select Run As → BlackBerry Android Launch 2. Right-click on the project and select Debug As → BlackBerry Android Launch

4. Package the application into the BAR file format and sign the app 1. Right-click on the project and select BlackBerry Tools → Sign for BlackBerry World 2. The signed BAR file will be located in the <project>/dist/Android 2.3.3 project folder

Documentation on the BlackBerry Plug-in for ADT can be referenced at: https://developer.blackberry.com/android/documentation/overview_plugin_1849581_11.html

developer.blackberry.com/android

See dev site for full info

Page 16: Porting Android Apps to BlackBerry 10

16

Upcoming Events…

EveryAttendeeGets a FREE

BlackBerry Z10

SandsConvention CenterLas Vegas5/21/13

Page 17: Porting Android Apps to BlackBerry 10

Let’s Port some Apps!Anyone bring their apk?

Page 18: Porting Android Apps to BlackBerry 10

THANK YOU!

developer.blackberry.com/android

Larry McDonoughBlackBerry Developer Relations@LMcDunna