Home > Technology > Droid con berlin_the_bb10_android_runtime

Droid con berlin_the_bb10_android_runtime

Date post: 09-May-2015
Category:
Author: droidcon-berlin
View: 475 times
Download: 0 times
Share this document with a friend
Embed Size (px)
of 33 /33
KÁMEL LAJILI Sr. Application Development Consultant [email protected] @KLAJILI The BlackBerry10 Android Runtime
Transcript
  • 1.The BlackBerry10 AndroidRuntimeKMEL LAJILI Sr. Application Development Consultant [email protected] @KLAJILI

2. BlackBerry 10SDKs C++/QtC/C++HTML5 BlackBerryActionScript JavaCascades Native SDKWebWorksAdobe AIR AndroidRuntime 3. What is the Android Runtime? 3 4. 4What is the Android Runtime?Core AppsApp 1 App 2App 3 . Its Android Open sourceApplication Framework v2.3.3 aka GingerbreadCore Android AppsActivity MgrWindow MgrView SystemNotification MgrApplication Framework runningPackage MgrResource Mgr Location Mgron top of BlackBerry10 OS LibraryJava Runtime Enables ported Android appsFreeType SGL Core Libraries to be installed and run WebKitOpenGL ES Dalvik Virtual Machine Surface MgrSQLite Deep integration with BB Media FwkSSLlibc native framework with the BlackBerry 10 OSobjective to make Androidapps indistinguishable fromnative apps 5. What is the Android Runtime?Compatibility & Limitations About 70% of all Android apps are compatible today Not all Android APIs are supported Hardware (BT, NFC, ) and OS limitations (JNI) Android Apps are limited to the personal perimeter No Enterprise support Full compatibility list see: http://developer.blackberry.com/android/apisupport5 6. BlackBerry 10 FeaturesUsability and Compatibility6 7. BlackBerry 10 FeaturesImproved Usability Text input controls are now integratedwith the BlackBerry 10 virtual keyboard Support for notifications Integrated with BlackBerry Hub and as a splat on your application icon Multimedia sync Multimedia created using Android apps is visible to native BlackBerry 10 multimedia applications. This includes pictures and videos 7 8. BlackBerry 10 FeaturesImproved Usability New intent support for BlackBerry 10apps and cards Share via Email or SMS Create Calendar appointments Add information to Contacts Contact Picker Launch links via native Browser Dialer Support File Picker 8 9. BlackBerry 10 FeaturesImproved Compatibility New API support in BlackBerry 10Runtime for Android Apps Camera API Camera Flash API Camera AutoFocus API In-App Payment API C2DM/GCM Support Ambient Light API Proximity sensor API Telephony APIs* (Not all supported) 9 10. BlackBerry 10 FeaturesBlackBerry Runtime for Android Apps Support for Keyboard devices Continued support for Android Runtime Support for 720x720 screen resolution QWERTY keyboard support 10 11. BlackBerry 10 FeaturesWant to use Maps? Support for location based intents to display maps Use WebView + web services (Google, Bing, etc.) todisplay map content within apps More details on mapping support can be found on theAPI Support Page http://developer.blackberry.com/android/apisupport 11 12. BlackBerry 10 FeaturesWant to use [email protected] void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main);WebView webView = (WebView) findViewById(R.id.mywebview);webView.getSettings().setJavaScriptEnabled(true);webView.loadUrl("http://maps.google.com/?ll=36.97,-122&lci=bike&z=13&t=p");}12 13. BlackBerry 10 FeaturesWant to use In-App Payments? In-App Payments supported through BlackBerry World Use the same Digital Good SKUs used for Item IDs in the Androidpayment system Couple of items to remember: Only one purchase can be made at a time (No concurrent transactions) Refunds are not supported Subscriptions are not supported Transaction responses are not signed (use e.g.java.lang.System.getProperty("os.name").equals("qnx")) http://developer.blackberry.com/android/apisupport 13 14. BlackBerry 10 FeaturesWant to use Push? Push support for Cloud to Device Messaging(C2DM) andGoogle Cloud Messaging(GCM) To create a push-enabled Android app, you need to: Register with the Push Service to get push capability for yoursigning keys Create the configuration file and zip it to your bar file Specify Push as a required permission in the .bar files manifestfile On the push-initiator server side, format the data to be sent toBlackBerry application servers instead of Google applicationservers http://developer.blackberry.com/android/apisupport14 15. Development BasicsConvert, Sign and Submit!15 16. Development BasicsSimple Process Tools Online Conversion Tool - Quickest way to get apps converted Eclipse Plug-in - For most Android developers Command-line Tools - Advanced development options Simulators - BlackBerry PlayBook and BlackBerry 10 Basic concepts Code Signing Development Debug Tokens16 17. Converting Existing AppsOnline Conversion Tool Select the location of your APK file Select the location of your Android SDK folder17 18. Converting Existing AppsOnline Conversion Tool 18 19. Converting Existing AppsOnline Conversion Tool Warnings rangefrom mild (level 1) tosevere (level 5) Apps that receivewarnings less thanlevel 2 are consideredcompatible Apps which receivewarnings of level 2 orhigher are generallyconsidered to beincompatible 19 20. Converting Existing AppsEclipse Plug-in for Android 1.5 ADT Plug-in for Eclipse + BlackBerry Plug-in for ADT BlackBerry PlayBook,BlackBerry 10 andsimulators are just anotherdevice target for yourexisting Android project Debugging applications onBlackBerry just like onother Android devices 20 21. Converting Existing AppsEclipse Plug-in for Android 1.5.2 Whats new in BlackBerry Plug-in for ADT Support for Windows 8, Mountain Lion 10.8, Ubuntu 12.04 Added support for ADT 21.0.1 Icon size now includes support for xhpdi and hdpi Android icons High resolution icons will be converted to 114x114 for BlackBerry 10 xhdpi 96x96 icons will be resized for PlayBook or BlackBerry 10 if higher resolution icon is not present Support for BAR manifest additions21 22. Development BasicsCommand-line SDKRepackage your APK to a BAR file in 4 easy steps1) Check your APK for compatibilityapk2barVerifier C:Program FilesAndroidandroid-sdkbin>apk2barVerifier HelloWorld.apk2) Repackage your APK file as a BAR C:Program FilesAndroidandroid-sdkbin>apk2bar HelloWorld.apkapk2barC:Program FilesAndroidandroid-sdkbin>batchbar-signer HelloWorld.bar author.p123) Sign your applicationp12password rdkpasswordbatchbar-signer C:Program FilesAndroidandroid-sdkbin>blackberry-deploy installApp device169.254.0.1 package HelloWorld.bar4) Deploy your applicationpassword devicepasswordblackberry-deploy22 23. Development BasicsCommon Verification Errors When you run verification on your application, you might seewarnings or errors These not errors. Features requiring minimal OS verison uses-feature: android.hardware.camera:required minimal OS version=2.1:impact=2 uses-permission: com.google.android.c2dm.permission.RECEIVE:required minimal OS version=10.0.9:impact=2 uses-feature: android.hardware.telephony:required minimal OS version=10.0.6:impact=2 These are features not supported native-code: armeabi:impact=5 uses-library: android.test.runner:impact=4 uses package: com.google.android.maps:impact=3 targetSdkVersion: 14 is higher than 10:impact=1 23 24. Converting Existing AppsSign Apps for BlackBerry World A code signing key is required to test your app and topublish your app to BlackBerry World They can also be used to generate a debug token foryour BlackBerry PlayBook or BlackBerry 10 Device Request code signing keys here http://developer.blackberry.com/android/signingkey 24 25. Development BasicsSubmit to BlackBerry World FREE to register No registration/submission fees. None. $0.00 Global marketplace 70/30 revenue share Credit card, PayPal, carrierbilling Free and paid apps catalog Integrated barcode scanning25 26. Development BasicsSubmit to BlackBerry World What do you need to submit your application Application for membership Account Application and a great app name Great description and details about your application Create an icon, screen shots, vendor logo App Icon 480x480 App Screen Shots 1280x720 or 720x720 Submit your app! developer.blackberry.com/devzone/blackberryworld/preparing_your_app_for_blackberry_world.html26 27. Success Stories PineLake Communications on Porting Cubifice toBlackBerry 10 Ported existing OpenGLAndroid application Porting process took 1 hour 25x more downloads inBlackBerry World versusGoogle Play 27 28. Success Stories Songza28 29. Success Stories29 30. Success StoriesPhoto Studio30 31. Success Stories31 32. For More Information BlackBerry Runtime for Android apps homepage http://developer.blackberry.com/android/ BlackBerry Runtime for Android apps Roadmap http://developer.blackberry.com/android/tools/roadmap/ Repackaging and Development Tools http://developer.blackberry.com/android/tools/ Getting started tutorial http://developer.blackberry.com/android/documentation/gettingstarted.html 32 33. Thank YouKAMEL LAJILI Sr. Application Development Consultant [email protected] @KLAJILI


Recommended