Workshop: Amazon developer ecosystem - DroidCon Paris2014

79
AMAZON DEVELOPER ECOSYSTEM Droidcon Paris DAVE ISBITSKI MOBILE APPS & GAMES DEVELOPER EVANGELIST, AMAZON @TheDaveDev [email protected]

Transcript of Workshop: Amazon developer ecosystem - DroidCon Paris2014

Page 1: Workshop: Amazon developer ecosystem - DroidCon Paris2014

AMAZON DEVELOPER ECOSYSTEM Droidcon Paris  

DAVE ISBITSKI MOBILE APPS & GAMES DEVELOPER EVANGELIST, AMAZON

@TheDaveDev

[email protected]

Page 2: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Welcome to the event TODAY’S AGENDA

•  Amazon Ecosystem of Apps and Devices •  Introducing Fire phone •  Dynamic Perspective •  Introducing Fire TV •  Setting up Your Developer Environment •  Submitting to the Amazon Appstore

Page 3: Workshop: Amazon developer ecosystem - DroidCon Paris2014

3

developer.amazon.com/firephone developer.amazon.com/firetv

Page 4: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Amazon Ecosystem of Apps and Devices

Part 1.1  1

Page 5: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Amazon’s Large and Active Audience

5  

Amazon  sites  

Fire  phone  Kindle  Fire  

»  The  Appstore  is  integrated  across    the  Amazon  ecosystem  

§  240MM+  ac:ve  global  customer  accounts  1  

§  91MM  monthly  unique  visitors  (US)  2  

§  240,000+  apps  in  the  Amazon  Appstore  

§  Only  place  for  Apps  for  Kindle  Fire,  Fire  TV,  Fire  phone,  and  Blackberry  10  Devices  

§  Available  on  Android  tablets  and  phones  

»  By  making  your  app  available  on  the  Amazon  Appstore,  you’ll  have  the  opportunity  to  reach  Kindle  Fire  customers  

Fire  TV  

Page 6: Workshop: Amazon developer ecosystem - DroidCon Paris2014

” “

“ ”

” “ Feedback About Our 2013 Tablets

6  

...the HDX 8.9 is light. Absurdly light. Dumb light. It makes the already featherweight one-pound iPad Air feel like it's made out of lead by comparison. - Gizmodo

At the end of the day, the Kindle Fire HDX offers the best raw hardware performance.

- CNN Money

Not only is the device awesome but the Mayday feature is absolutely FANTASTIC!!!!! The Kindle team has hit it out of the park with this one as did Santa! - Kindle Customer

Page 7: Workshop: Amazon developer ecosystem - DroidCon Paris2014

• High-­‐Performance  Gaming  • Second  screen  integra:on  

• Mul:-­‐Player  Support  Android  compa:ble  

• Integrated  with  Amazon  Payment  Services  

” “

“ ”

Amazon Fire TV brings your apps into the living room

7  

Porting to Fire TV from our existing Android version was quick and the support from Amazon was excellent.

- J. Vuorinen, CEO at Frogmind

“We believe it will be one of the most game-changing products on the market, and look forward to giving Amazon viewers on-demand access to AOL On, HuffPost Live, and our entire video library.”

- R. Harnevo, President of Video at AOL

Page 8: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Amazon Appstore is Available in a Country Near You

8  

» Amazon  Appstore  is  preloaded  on  select  Android  smartphones  on  Verizon  Wireless  and  the  only  Appstore  on  Blackberry  10  devices  

» Same  Appstore  across  Kindle  Fire,  Fire  TV  and  Fire  phone  

» Available  in  nearly  200  countries  including  US,  Canada,  Europe,  Japan,  China,  and  Brazil  

Page 9: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Amazon Mobile App SDK – iOS, Android, HTML5, Unity

9  

GameCircle Mobile Associates

Amazon Maps

A/B Testing

Amazon AppStream by AWS Amazon Mobile

Ads HTML5 Web

Apps

Mobile Device Management

Login with Amazon

Kindle FreeTime Unlimited

Amazon Device Messaging

Amazon Coins

Amazon Analytics

Appstore Developer

Select

In-App Purchasing

Page 10: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Amazon  Mobile  Ads  API  

•  US and International. Currently serving ads in US, UK, DE, FR, ES and IT

•  Banner and Interstitial Formats across FireOS, Android and iOS

•  Great monetisation opportunity including guaranteed $6 eCPM on Fire phjone

•  High quality advertisements from Amazon, its affiliates, and direct advertisers

•  Easy integration through the Amazon Mobile App SDK

Page 11: Workshop: Amazon developer ecosystem - DroidCon Paris2014

In-­‐App  Purchasing  API  »  Start  mone:zing  in  as  li]le  as  2  hours  

»  Sell  digital  content  (in-­‐game  currency,  expansion  packs,  upgrades)    and  subscrip:ons  from  within  mobile  apps  

»  Integrate  in  as  few  as  five  steps,  in  as  li]le  as  two  hours  

»  All  customers  have  a  payment  method  on  file,  and  Kindle  Fire  tablets  sold  by  Amazon  are  pre-­‐registered  

Page 12: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Amazon  Mobile  Associates  API  

•  Offer  Physical  and  Digital  Items  for  Sale  •  Earn  up  to  6%  Adver:sing  Fees  •  Leverage  Amazon’s  Checkout  

Experience  •  Drive  further  engagement  by  tying  the  

purchase  of  physical  products  to  digital  content  in  your  app  

•  Upon  purchase,  you’ll  get  a  receipt  to  fulfill  your  users’  digital  content    

•  Complementary  to  IAP  &  Mobile  Ads  •  Wide  reach  -­‐  both  Amazon  Appstore  &  

Google  Play  

Page 13: Workshop: Amazon developer ecosystem - DroidCon Paris2014

HTML5  Web  Apps  •  The Amazon Mobile App Distribution program allows web

apps to be distributed on select Android devices and Kindle Fire in nearly 200 countries around the globe.

•  Both free and paid apps are supported as well as In-App Purchasing (Amazon In-App Purchase API for JavaScript or third party)

•  The program will help get your existing mobile website in front of millions of active Amazon customers who are already downloading apps.

•  It can help solve some of the common concerns of existing websites today; how will people find it? How will it perform on Mobile Devices? And how will it make money?

Page 14: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Once  you  integrate  GameCircle,  customers  can  seamlessly  play  games  and  interact  with  other  gamers  across  any  mobile  device.  

WHY ADD GAMECIRCLE SUPPORT TO YOUR GAME  

Page 15: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Whispersync for Games automatically synchronizes game data and resolves any conflict arising from offline and simultaneous game use.

WHISPERSYNC FOR GAMES  

Page 16: Workshop: Amazon developer ecosystem - DroidCon Paris2014

You define achievements for your game in the GameCircle panel of the Amazon Apps & Games Developer Portal, enter metadata associated with that achievement and upload the images to display for that achievement.

ADDING ACHIEVEMENTS TO YOUR GAME  

Page 17: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Leaderboards can also extend the audience of your game, as players encourage their friends to play the game so they can be ranked against people they know.

THE IMPORTANCE OF LEADERBOARDS IN GAMES  

Page 18: Workshop: Amazon developer ecosystem - DroidCon Paris2014

LEARN MORE ABOUT GAMECIRCLE http://developer.amazon.com/apps

Page 19: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Amazon  Coins  •  Amazon Coins is a virtual currency that

customers can use to purchase apps, games, and in-app items

•  No development necessary for Kindle Fire apps •  Coins can be used by customers in the US, UK,

and Germany •  Now available for gifting!

19  

Page 20: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Simply drag and drop your Android APK and receive feedback on your app's compatibility within 90 seconds. You will also have access to additional Fire phone test results that enable you to see how your app looks and performs on Fire phone. The test results are presented in 6 hours and include carousel, peek and tilt actions.

APP TESTING SERVICE  

Page 21: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Optimize your apps for Fire phone and get enhanced merchandising and 500,000 Amazon Coins incentives for your customers.

APPSTORE DEVELOPER SELECT  

Page 22: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Welcome to the event TODAY’S AGENDA

•  Amazon Ecosystem of Apps and Devices •  Introducing Fire phone •  Dynamic Perspective •  Introducing Fire TV •  Setting up Your Developer Environment •  Submitting to the Amazon Appstore

Page 23: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Introducing Fire Phone Part 1.2  2

Page 24: Workshop: Amazon developer ecosystem - DroidCon Paris2014
Page 25: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Fire phone is the first phone designed by Amazon and the only smartphone with Dynamic Perspective and Firefly. Dynamic Perspective is an entirely new technology that responds to the way a customer holds, views and moves the phone.

WHAT IS FIRE PHONE?  

Page 26: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Experience interactions not possible on other smartphones. Tilt, auto-scroll, swivel, and peek to navigate menus and access shortcuts with one hand. Dive into a new class of immersive apps and games—peek to see detailed views of clothing, shoes, and more or take on a character's viewpoint to see around corners and obstacles in games.

DYNAMIC PERSPECTIVE  

Page 27: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Quickly identify printed web and email addresses, phone numbers, QR and bar codes, plus over 100 million items, including movies, TV episodes, songs, and products. Simply press and hold the dedicated Firefly button to discover useful information and take action in seconds.

FIREFLY  

Page 28: Workshop: Amazon developer ecosystem - DroidCon Paris2014

One SDK to create plugins for FIREFLY Quickly identify printed web and email addresses, phone numbers, QR and bar codes, plus over 100 million items, including movies, TV episodes, songs, and products. Simply press and hold the dedicated Firefly button to discover useful information and take action in seconds.

Page 29: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Fire phone is INCREDIBLY POWERFUL Fire phone uses a Qualcomm Snapdragon 800 Quad-core 2.2 GHz CPU with Adreno 330 GPU and 2GB of RAM to support high performance game experiences. A 4.7” HD screen at 315 ppi, 590 cd/m2 brightness (typical), 1000:1 contrast ratio (typical)– giving bright and crisp experiences. Dolby Digital Plus Sound

Page 30: Workshop: Amazon developer ecosystem - DroidCon Paris2014

13MP Camera System with ADVANCED OPTICS Fire phone includes a 13MP camera, 13MP camera, and optical image stabilization allowing more light onto the lens resulting in beautiful photos. 1080p video with unlimited storage to the Amazon Cloud. Dedicated camera button

Page 31: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Help within 15 seconds or less MAYDAY Fire phone includes the same free, live, on device tech support as our Kindle Fire HDX devices. Simply hit the Mayday button in quick actions and an Amazon expert will appear to help you via live video. Our tech experts can co-pilot you through any feature by drawing on your screen, walking you through how to do something yourself, or doing it for you—whatever works best.

Page 32: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Welcome to the event TODAY’S AGENDA

•  Amazon Ecosystem of Apps and Devices •  Introducing Fire phone •  Dynamic Perspective •  Introducing Fire TV •  Setting up Your Developer Environment •  Submitting to the Amazon Appstore

Page 33: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Dynamic Perspective PART 1.3  3

Page 34: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Depth and Perspective with DYNAMIC PERSPECTIVE The Dynamic Perspective SDK combines the Home, Head Tracking, Motion, Foundation Controls, and UI Framework APIs. Everything you need to get your existing Android app optimized for Fire phone. Combine existing Android fragments with enhanced controls. One Handed Shortcuts

Page 35: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Control Fire with simple ONE-HANDED SHORTCUTS Access menus, shortcuts, and useful information with tilt, swivel, and peek. Tilt for panels—use the left panel to navigate menus, and the right panel to access useful information and shortcuts, like attaching photos to a text message, viewing song lyrics, and more. Peek keeps your display uncluttered by revealing additional details and quick actions only when needed.

Page 36: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Enhanced Navigation with TILT SidePanelLayout - Content Panel, Right Panel and Left Panel Quick Navigation, refinement controls, sort controls Actions here change the content panel Discover new things or perform tasks without leaving the current context

Page 37: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Display context with PEEK Peek keeps your display uncluttered by revealing additional details and quick actions only when needed. Display contextual information. Show things that help the user in the moment. Reveal secondary information that the user may be looking for, but don’t ‘hide’ primary information on peek. Reward close inspection. Peek gestures work best in the primary panel.

Page 38: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Expose App Information with ENHANCED CAROUSEL Widgets enhance the experience when viewing recently run apps in the carousel. Notification counter display over the Widget. List and Grid Views below the Widget allowing both texts and images. Users can take action on these views and open your app via an Android Intent. For example, clicking on a city name or image will open the maps app with the selected city.

Page 39: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Dynamic Perspective controls with UI FRAMEWORK Rich set of APIs and Controls to help developers incorporate peek, tilt and zoom capabilities within their apps while adding a sense of realistic depth and perspective. These controls work behind the scenes with Fire’s advanced camera and sensors to automatically adjust their appearance based on how your application is being viewed. UI controls retain the name of the original base control, but with a "Z" prepended to the name. For example, a Button control becomes a ZButton control.

Page 40: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Create Immersive Games with HEADTRACKING API Gain access to the raw head tracking data: x, y, z, and tilt of head. Automatically implemented in UI Controls. Unity plug in available.

Page 41: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Introducing Fire TV PART 1.4  4

Page 42: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Amazon Fire TV gives you a familiar Android–based platform (API 17) to extend your apps and games to the big screen.

WHAT IS AMAZON FIRE TV?  

Page 43: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Choose between the Amazon Fire TV Remote or the Amazon Fire Game Controller for a richer gaming experience

POWERFUL ANDROID-BASED GAMING  

Page 44: Workshop: Amazon developer ecosystem - DroidCon Paris2014

The Amazon Fire TV is INCREDIBLY POWERFUL Amazon Fire TV uses a Qualcomm Quad Core Snapdragon Krait 300 processor with Adreno 320 GPU and 2GB of RAM to support high performance game experiences.

Page 45: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Designing for the10-foot Experience

Page 46: Workshop: Amazon developer ecosystem - DroidCon Paris2014

You will have to design your user interface differently for people sitting 10 feet away from the display.

WHAT MAKES DESIGNING FOR TV SO DIFFERENT  

Page 47: Workshop: Amazon developer ecosystem - DroidCon Paris2014

The goal of 10 foot user interface design is to make the user's interaction as simple and efficient as possible, with as few button presses as possible while still having an intuitive layout, in terms of accomplishing user goals—what is often called user-centered design.

THIS IS CALLED THE 10-FOOT USER INTERFACE  

http://en.wikipedia.org/wiki/10-foot_user_interface

“                        

Page 48: Workshop: Amazon developer ecosystem - DroidCon Paris2014

CLEAN, SIMPLE, AND EASY TO NAVIGATE

THE AMAZON FIRE TV’S UI IS

Page 49: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Navigation

Page 50: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Navigation should be REMOTE FRIENDLY Remember that every Fire TV comes with an Amazon Fire TV Remote so: •  Focus on the core navigation buttons •  Standard Android navigation for Menu,

Home and Back buttons. •  Reserve media buttons for playback only.

Page 51: Workshop: Amazon developer ecosystem - DroidCon Paris2014

The following patterns are references for optimizing the design of your own apps with the system UI.

SCREENS, VIEWS, AND FLOWS  

Page 52: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Icons  are  large  and  easy  to  see  from  across  the  room  Home Screen (Launcher) EXAMPLE  1  

Page 53: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Make  bu]on  selec:on  easy  to  see  as  you  move  around  the  UI  via  the  remote  Home Screen (Selection) EXAMPLE  2  

Page 54: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Use  ver:cal  lists  to  display  more  content  in  landscape  centric  TV  resolu:ons  1D List Views EXAMPLE  3  

Page 55: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Only  expose  details  when  user  selects  item  and  have  quick  ac:on  naviga:on  Detail View EXAMPLE  4  

Page 56: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Chances are that your existing landscape designs will work perfectly as is assuming it supports: •  Button states for selected, disabled, etc. •  Easy navigation via the Amazon Fire TV Remote •  Clearly indicates how to move from screen to

screen

WHEN DESIGNING MOBILE FRIENDLY UI  

Page 57: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Working with HD Resolutions on TV

Page 58: Workshop: Amazon developer ecosystem - DroidCon Paris2014

BUILD FOR ONE RESOLUTION Fire TV automatically handles downscaling your resolution to 720p and 480p. Simply build for 1080p (xhdpi).

Page 59: Workshop: Amazon developer ecosystem - DroidCon Paris2014

ORIENTATION The orientation of Amazon Fire TV never changes, and requests for the rotation or orientation on the device return these results:

Page 60: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Handling  different  resolu:ons  is  all  about  understanding  aspect  ra:os.  Design  for  16:9  and  4:3  along  with  UI  that  dynamically  adjusts  for  either  ra:o.  

SUPPORTING MULTIPLE RESOLUTIONS  

Page 61: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Setting up RESOURCE CONFIGURATIONS If you design your app to run on platforms other than Amazon Fire TV, such as tablets, you can create different layouts and drawables for each platform, and store them in subdirectories of res/named for various platform and device configurations. For more info, check out the Android developer resources at http://bit.ly/droid-screens

Page 62: Workshop: Amazon developer ecosystem - DroidCon Paris2014

5 - UNDERSTANDING HOW OVERSCAN WORKS

Page 63: Workshop: Amazon developer ecosystem - DroidCon Paris2014

6 - TV COLOR GAMUT In your app, use less saturated colors. Cool colors (blue, purple, gray) work better than warmer colors (red, orange).

Page 64: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Welcome to the event TODAY’S AGENDA

•  Amazon Ecosystem of Apps and Devices •  Introducing Fire phone •  Dynamic Perspective •  Introducing Fire TV •  Setting up Your Developer Environment •  Submitting to the Amazon Appstore

Page 65: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Setting up the Dev Environment

Part 1.5  5

Page 66: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Android developers can use existing tools and frameworks to develop for Fire phone.

ANDROID 4.2.2 COMPATIBLE  

Page 67: Workshop: Amazon developer ecosystem - DroidCon Paris2014

ANDROID 4.2.2 COMPATIBLE  

Most APKs tested just work on Fire phone Use the same familiar Android developer environment (Android Studio gradle support) Fire phone uses DeviceDefault Themes Target any and all Amazon Devices (Kindle Fire, Fire TV, and Fire Phone) using a single APK. Test your APK in minutes

Page 68: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Developer Registration  

Page 69: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Demo Developer Registration  

Page 70: Workshop: Amazon developer ecosystem - DroidCon Paris2014

GETTING THE FIRE SDK http://developer.amazon.com/firephone

Page 71: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Download the following: •  The Java Development Kit (JDK) •  Android SDK •  An Android IDE (Eclipse** or Android

Studio) •  The Fire phone SDK add-on

1. WHAT YOU NEED TO GET STARTED  

Page 72: Workshop: Amazon developer ecosystem - DroidCon Paris2014

To download the add-on simply open the Android SDK Manager from a command line or from within Eclipse and do the following: •  Add the following user-defined site, in the Manage Add-on

Sites dialog: https://s3.amazonaws.com/android-sdk-manager/redist/addon.xml

•  Expand Android 4.2.2 (API 17) and click SDK Platform and Fire Phone SDK Add-on.

2. AMAZON FIRE PHONE SDK  

Page 73: Workshop: Amazon developer ecosystem - DroidCon Paris2014

To build with Android Studio •  Need to update build.gradle file to use 0.12 plugin

2. AMAZON FIRE PHONE SDK  

Page 74: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Welcome to the event TODAY’S AGENDA

•  Amazon Ecosystem of Apps and Devices •  Introducing Fire phone •  Dynamic Perspective •  Introducing Fire TV •  Setting up Your Developer Environment •  Submitting to the Amazon Appstore

Page 75: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Submitting to the Appstore Part 1.8  6

Page 76: Workshop: Amazon developer ecosystem - DroidCon Paris2014

TEST YOUR APK ONLINE http://developer.amazon.com/apps

Page 77: Workshop: Amazon developer ecosystem - DroidCon Paris2014

Demo App Submission  

Page 78: Workshop: Amazon developer ecosystem - DroidCon Paris2014

78

developer.amazon.com/firephone developer.amazon.com/firetv

Page 79: Workshop: Amazon developer ecosystem - DroidCon Paris2014

79

AMAZON DEVELOPER WORKSHOP Droidcon Paris

DAVE ISBITSKI MOBILE APPS & GAMES DEVELOPER EVANGELIST, AMAZON

@TheDaveDev

[email protected]