Nokia X Technical session - Ankara Android Developer Days

36
Technical Session Attila Csipa Technology Wizard, Microsoft

description

A developer oriented introduction to the Nokia X Software platform, with a focus on the technical basis. First, a short introduction to the platform is made, with a comparison to Android-based platforms. Then a business case is presented, explaining the appeal and opportunity presented by the platform. The second half of the session will focus on the Microsoft services provided on the platform (Notifications, In-app payment and HERE Maps), including their APIs and details on how to enable or port applications to use them.

Transcript of Nokia X Technical session - Ankara Android Developer Days

Page 1: Nokia X Technical session - Ankara Android Developer Days

Technical Session

Attila CsipaTechnology Wizard, Microsoft

Page 2: Nokia X Technical session - Ankara Android Developer Days

Nokia X Can we have the cake and eat it, too?

Nokia X

Access to the world of

Android apps+

Nokia X

Smoother, faster flow

between your favourite

apps

+

Nokia X

Standout Design that’s built to last

Page 3: Nokia X Technical session - Ankara Android Developer Days

Source: App Annie* download data from Google Play

OF TOP ANDROID DOWNLOAD* COUNTRIES WERE GROWTH MARKETS (INDIA, RUSSIA, BRAZIL).

3/5

OF THE GROWTH MARKETS MADE IT TO THE TOP 10 REVENUE COUNTRIES

0/10

Nokia X Developer Opportunity

Page 4: Nokia X Technical session - Ankara Android Developer Days

Nokia X In App Payment broadest reach

■Full Country coverage

■Partial Country coverage

Live Operators

■No Country coverage

60 Markets / 160+ Operators!

Page 5: Nokia X Technical session - Ankara Android Developer Days

Nokia XPortfolio

Page 6: Nokia X Technical session - Ankara Android Developer Days

Nokia X Technical Specifications

Nokia X+Nokia X Nokia XL4” screen (800*480)1GHz Dual core CPU

3MP camera7.2Mbps 3G, Dual (micro) SIM

100 Mbps Wi-FiFastlane UI

4GB internal memory, 512MB RAM, 32GB Micro SD slot

API level 16 (Android version 4.1.2)

4” screen (800*480)1GHz Dual core CPU

3MP camera7.2Mbps 3G, Dual (micro) SIM

100 Mbps Wi-FiFastlane UI

4GB internal memory, 768MB RAM, 32GB Micro SD slot

API level 16 (Android version 4.1.2)

5” screen (800*480)1GHz Dual core CPU

5MP AF cameraFront facing camera

7.2Mbps 3G, Dual (micro) SIM100 Mbps Wi-Fi

Fastlane UI4GB/768MB memory/3GB MicroSD slot

API level 16 (Android version 4.1.2)

Page 7: Nokia X Technical session - Ankara Android Developer Days

Nokia X software PlatformA new platform built with Android Open Source Project at its core.. It combines a popular smartphone software base with Nokia’s global reach and strength to create new opportunities for your apps.

7

Android Open Source Project 4.1.2 (API level 16)

Android 3rd party applications

Nokia X software Platform 1.0 Nokia

StoreNokia

UX

In-App Payment

API

HEREAPI

Nokia Notifications

API

Page 8: Nokia X Technical session - Ankara Android Developer Days

Nokia X What is it all about

Nokia X = Android – Google Services + Nokia X ServicesAPI level 16 Google Play Services

Google+GCMGoogle MapsGoogle *

Nokia In-app PaymentHERE MapsNokia Push Notifications…OneDriveMixRadioOutlook.comLive SDK

Page 9: Nokia X Technical session - Ankara Android Developer Days

Nokia X APIsA new platform built with Android Open Source Project at its core.. It combines a popular smartphone software base with Nokia’s global reach and strength to create new opportunities for your apps.

HERE Maps Nokia Push Notifications Nokia In-App Payments

HERE maps provides complete offline experiences like no other maps service.

Simple yet powerful notifications service.

World’s largest operator billing network.

Page 10: Nokia X Technical session - Ankara Android Developer Days

Nokia X 100 000+ Android applications testedA new platform built with Android Open Source Project at its core.. It combines a popular smartphone software base with Nokia’s global reach and strength to create new opportunities for your apps.

75% Android applications work unmodified25% require small changes

Nokia X service APIsNokia In-App Payment

HERE Maps

Nokia Notifications

(replace Google APIs)

Application ready to publish in Nokia Store.

No porting, no coding just publish!

Page 11: Nokia X Technical session - Ankara Android Developer Days

Nokia X Analyser developer.nokia.com

Submit .apk to Nokia Store

75% work unmodified

Port using Nokia X

Services SDK

25% needa little retouch

Up to8h porting*

Nokia X Compatibility, it’s a no brainerNokia testing has shown that about 75% of Android apps will run properly without any modifications.

Plus we give you easy to use online and offline tools to check your applications within seconds.

*For most apps, depending on application complexity and number of used APIs that need porting

Page 12: Nokia X Technical session - Ankara Android Developer Days

Nokia X Verify general compatibility Check if your Android app is compatible with Nokia X software platform IN SECONDS.

Provide quick and easy porting steps highlights common failure cases for easy porting.

Nokia X Analyser engine is verified with 10K Android apps with 99% accuracy!

Nokia X Analyser scans the standard Android application packages (apk files) for the usage of

• Unsupported Google service APIs ( maps, notifications and in-app billing)

• NFC • Minimum API version required

Based on the above APIs’ usage, the application is flagged as compatible or not.Failure cases are surfaced to developers with pointers to fix using SDK plugins

NFC API Level

Analyser Rules Engine

Analyser UI

Android app (.apk) parser

G maps to HERE maps

G notifications to NNA

G billing to NIAP

Page 13: Nokia X Technical session - Ankara Android Developer Days
Page 14: Nokia X Technical session - Ankara Android Developer Days
Page 15: Nokia X Technical session - Ankara Android Developer Days

7/10/2014 16

Page 16: Nokia X Technical session - Ankara Android Developer Days

7/10/2014 17

Page 17: Nokia X Technical session - Ankara Android Developer Days
Page 18: Nokia X Technical session - Ankara Android Developer Days

19

Page 19: Nokia X Technical session - Ankara Android Developer Days

Nokia X Install the Nokia X Services SDK

• Plugins/Extensions to Google’s ADT environment to enable Nokia X app development from Eclipse IDE.

• Nokia differentiation services targeted – In App Payment (NIAP), Notifications (NNA), HERE maps

Nokia X Differentiator Plugins

• AVD support for Nokia X device in Android SDK so that testing/debugging can be done in the emulator

Nokia X DeviceEmulation

Page 20: Nokia X Technical session - Ankara Android Developer Days

Nokia X EmulatorAn API level 16 Android Virtual Device (AVD) with the Nokia X services enabled

Both ARM & X86 images (really fast!)

Works with ADB!

Page 21: Nokia X Technical session - Ankara Android Developer Days

Nokia X Adapting to Nokia Services / Porting

Baseline Platform Android 4.1

-------------------------------Nokia X Software Platform 1.0

based on AOSP V 4.1

Google Maps

Google In-App Billing

Google Cloud Messaging

Page 22: Nokia X Technical session - Ankara Android Developer Days

Nokia X One APK approach

• The Google and Nokia services can coexist in the applications• Make sure you fail gracefully!

• You can load and use the one that is present at runtime

• A one time investment in terms of developer effort

• Allows submission of same APK to Google Play and the Nokia Store

• Address more users with a single release

• Simultaneous release of same version (QA permitting) in all stores

Page 23: Nokia X Technical session - Ankara Android Developer Days

Nokia X One APK approach – common manifest<permission android:name="(your_app_pkg).permission.C2D_MESSAGE" android:protectionLevel="signature" />

<uses-permission android:name="(your_app_pkg).permission.C2D_MESSAGE" />

<uses-permission android:name="com.nokia.pushnotifications.permission.RECEIVE" />

<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />

<application ... > ...

<receiver android:name="com.nokia.push.PushBroadcastReceiver" android:permission="com.nokia.pushnotifications.permission.SEND">

<intent-filter>

<action android:name="com.nokia.pushnotifications.intent.RECEIVE" />

<action android:name="com.nokia.pushnotifications.intent.REGISTRATION" />

<category android:name="(your_app_pkg)" />

</intent-filter>

</receiver>

<receiver android:name="com.google.android.gcm.GCMBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND" >

<intent-filter>

<action android:name="com.google.android.c2dm.intent.RECEIVE" />

<action android:name="com.google.android.c2dm.intent.REGISTRATION" />

<category android:name="(your_app_pkg)" />

</intent-filter>

</receiver>

<service android:name=".PushIntentService" />

<service android:name=".GCMIntentService" />

</application>

10.7.2014 25

Page 24: Nokia X Technical session - Ankara Android Developer Days

Nokia X One APK approach – Runtime detectiontry {

PushRegistrar.checkDevice(this);

// (continue with Nokia Notifications logic)

} catch (UnsupportedOperationException e1) {

try {

GCMRegistrar.checkDevice(this);

// (continue with GCM logic)

} catch (UnsupportedOperationException e2) {

// neither notification service is available

}

}

10.7.2014 26

Page 25: Nokia X Technical session - Ankara Android Developer Days

Nokia X Polish and UI considerations

Adopting Android UI to Nokia X UI requires tests, functional testing

Page 26: Nokia X Technical session - Ankara Android Developer Days

Nokia X UI Menu

Android’s Menu (3.0 and older) is replaced by Nokia’s Options menu.

Page 27: Nokia X Technical session - Ankara Android Developer Days

Nokia X Remote Device Access (RDA)

• Browser based service for developers to test their apps and services remotely in wide range of real, physical Nokia devices

• Natural extension for development and testing done with SDK and emulator

• FREE of charge

• ~150 devices in the service, from low to high end

• Supported platforms:• Nokia X Software Platform

• Windows Phone 8

• Asha Software Developer Platform / Series 40

Page 28: Nokia X Technical session - Ankara Android Developer Days

10.7.2014 31

Page 29: Nokia X Technical session - Ankara Android Developer Days

10.7.2014 32

Page 30: Nokia X Technical session - Ankara Android Developer Days

Nokia X It’s free!

Registration

Publishing (NO yearly fees!)

Analyser

Service SDK

Remote Device Access

Page 31: Nokia X Technical session - Ankara Android Developer Days

Nokia X Reap the rewards (Profit!)

Nokia In Application Payment

Downloads and Ads

Nokia Developer Offers

DVLUP developer program

Do a Nokia X flavour of your SpaceApp(!)

Page 32: Nokia X Technical session - Ankara Android Developer Days

DVLUP Nokia’s rewards programComplete App challenges – Earn Points – get cool stuff

Targeted & Curated App Challenges

Engage via Gamification & Rewards

Over $5M worth of Rewards and Campaigns

Redeem earned points for Phones, Accessories, Dev Tools and App Promotion

Page 33: Nokia X Technical session - Ankara Android Developer Days

Developer offers for Nokia X

Registration via developer.nokia.com or events. Fulfillment via DVLUP.

Xamarin – Nokia X components (free)Hockeyapp – Crash Reports, Feedback, Distribution, Analytics – 3 months

Infragistics – UI libraries -1 year

Bugsense – Crash analytics and bug reporting – 3 months

Page 34: Nokia X Technical session - Ankara Android Developer Days

Nokia X Summary Nokia X is Nokia’s new platform with Android at it’s coreNokia X porting is easy and fastNokia X opens new markets to your existing apps

Page 35: Nokia X Technical session - Ankara Android Developer Days

Nokia X Q & A

39

Page 36: Nokia X Technical session - Ankara Android Developer Days

Nokia X Thanks for your time

GO! PORT