trilha android - android evolved

65
Android Evolved Android, Wear, Android Auto, And Android TV

Upload: jackson-f-de-a-mafra

Post on 13-Jan-2017

324 views

Category:

Mobile


2 download

TRANSCRIPT

Page 1: Trilha Android - Android Evolved

Android EvolvedAndroid, Wear, Android Auto, And Android TV

Page 2: Trilha Android - Android Evolved

Jackson F. de A. Mafra http://about.me/jacksonfdam https://bitbucket.org/jacksonfdam https://github.com/jacksonfdam http://linkedin.com/in/jacksonfdam @jacksonfdam

Software Engineer at Aggrega Group, mobile training instructor at Targettrust. Developer for 15 years with background in e-commerce projects and real estate, since 2009 with focused interests for the development of mobile and MEAP and applications interfaces.

Page 3: Trilha Android - Android Evolved
Page 4: Trilha Android - Android Evolved

Android has evolved. Already a mature mobile OS that is one of the two dominant operating systems in a huge and still-growing mobile

market, Android is officially not just for phones and tablets. It’s on your wrist, in your car, and

in your living room.

Page 5: Trilha Android - Android Evolved

We do not "ENTERED"

on the internet we

"live" online

Page 6: Trilha Android - Android Evolved

Right now, there are 1,362,720 apps in the Google Play Store. More than a million are free,

and only around 200,000 apps are paid.

Page 7: Trilha Android - Android Evolved

The most popular Google Play Store categories by September are those dedicated to lifestyle,

entertainment, education, business and personalization.

Page 8: Trilha Android - Android Evolved

About the most popular devices, it’s remarkable to note that all the Top 10 Android phones are Samsung models: Samsung Galaxy S3 is the

most used Android phone (6.3% market share), followed by Samsung Galaxy S4 (5.3%).

Page 9: Trilha Android - Android Evolved
Page 10: Trilha Android - Android Evolved
Page 11: Trilha Android - Android Evolved

Suddenly, the smartwatch is evolving. We had an inkling that this would happen when we first caught wind of Android Wear back in March of 2014, and we’re just about to be inundated with Android Wear-based smartwatches from all the usual consumer tech companies, including LG,

Samsung, Motorola, and ASUS

Page 12: Trilha Android - Android Evolved

Android Wear is an extension of Android that is a companion to devices running Android 4.3

and higher. It connects to your smartphone and uses a pretty and clear UI to give you a

variety of information such as the time of day, messages, and alerts. You can also see traffic,

send messages, call yourself a cab, and all manner of other uses involving Google Now

and the “OK Google” voice command.

Page 13: Trilha Android - Android Evolved

The idea is really to reduce the amount of time you spend pulling out your phone, entering a

password, swiping, and whatnot. Thus, Android Wear devices really are a convenient extension

of your smartphone.

Page 14: Trilha Android - Android Evolved

Create interfaces for watches is totally different from creating interfaces

for smartphones and tablets.

Page 15: Trilha Android - Android Evolved

Start applications or cards automatically

Users are used to start the applications manually, but wear the cards appear on the screen, showing relevant information at that

time. As a meeting reminder, e-mail message

notification.

Page 16: Trilha Android - Android Evolved

Simple Interface, practical and fast

Aka glanceable.They should be practical and lightweight. The less time you take to

understand the meaning of the screen, the better.

Page 17: Trilha Android - Android Evolved

Suggestions on demand

The apps are responsive and can react to events to assist the user in moments of

everyday life, such as sending a text message to a contact quickly by voice command.

Page 18: Trilha Android - Android Evolved

Simple interactions

Interaction is all through gestures and voice commands to be as simple and practical as

possible.

Page 19: Trilha Android - Android Evolved

Creating Wearable App

Apps run directly from the device Access to sensors and GPU

Same basis SDK

No Wear there is a timeout The Download is done by smartphone not for

wear. It offers automatic

Page 20: Trilha Android - Android Evolved

Apis not supported

webkit print

backup appwidget

usb

Page 21: Trilha Android - Android Evolved

8 of the best watches that run Android Wear

Sony Smartwatch - Samsung Gear Live - LG Watch Urbane - LG G Watch R

Lg G Watch - Moto 360 - Zenwatch - Huawei Watch

Page 22: Trilha Android - Android Evolved

Android Auto brings a similar experience to your car. Like Apple and others looking to bake

some more intelligence into our vehicles, Google is partnering with many automakers to

put Android-powered infotainment in the cockpit.

Page 23: Trilha Android - Android Evolved

Obviously, the killer application is Google Maps with navigation, but there are other useful

features as well, including viewing notifications, using voice commands, and more. Google expects to have Android Auto

capabilities in cars on dealer lots by the close of the year.

Page 24: Trilha Android - Android Evolved
Page 25: Trilha Android - Android Evolved

Android TV is the next logical evolution of Chromecast, the intriguing streaming stick that

Google unveiled last year.

It’s a software offering that brings the Android experience to TVs and set-top boxes. “You can use voice search to find a live TV show, a good

flick from Google Play, or a music video on YouTube,” reads a press release.

Page 26: Trilha Android - Android Evolved

You can also play Android games with a gamepad, which is a huge selling point for the platform, and like Chromecast, Google Cast

technology is built in. Look for Android TV on a number of products later this year.

Page 27: Trilha Android - Android Evolved
Page 28: Trilha Android - Android Evolved

Interaction - Cursor

Page 29: Trilha Android - Android Evolved

Interaction - Dpad

Page 30: Trilha Android - Android Evolved
Page 31: Trilha Android - Android Evolved
Page 32: Trilha Android - Android Evolved

Prerequisites

Update your SDK tools to version 24.0.0 or higher Update your SDK with Android 5.0 (API 21) or higher

Page 33: Trilha Android - Android Evolved

Supported Media Formats

It is a best practice to use media encoding profiles that are device-agnostic.

Page 34: Trilha Android - Android Evolved

DRM

The Android platform provides an extensible DRM framework that lets applications manage rights-protected content according to the license constraints associated with the content. The DRM framework supports many DRM schemes; which DRM schemes a device supports is up to the device manufacturer.

Page 35: Trilha Android - Android Evolved

ExoPlayer

The Android framework provides MediaPlayer as a quick solution for playing media with minimal code, and the MediaCodec and MediaExtractor classes are provided for building custom media players.

Page 36: Trilha Android - Android Evolved

Use Layout Themes for TV

Android Themes can provide a basis for layouts in your TV apps. You should use a theme to modify the display of your app activities that are meant to run on a TV device. This section explains which themes you should use.

Page 37: Trilha Android - Android Evolved

Use Layout Themes for TV

A support library for TV user interfaces called the v17 leanback library provides a standard theme for TV activities, called Theme.Leanback.

<activity android:name="com.example.android.TvActivity" android:label="@string/app_name" android:theme="@style/Theme.Leanback">

Page 38: Trilha Android - Android Evolved

Grab the Library Project Here

http://code.google.com/p/googletv-android-samples/

Page 39: Trilha Android - Android Evolved

Samples + Anymote Library

http://code.google.com/p/googletv-android-samples/

Page 40: Trilha Android - Android Evolved

Noteworthy Bits

Limitations One way communication May not be the fastest (i.e. may not be suitable for games)

Discovery handled by the app: Google TV Remote[1] (can use JmDNS) Pairing & Auth: Pairing Protocol Reference Implementation[2] Sending Events: Anymote Protocol Reference Implementation[3] Pairing and Anymote Protocols user Protocol Buffers[4] (lite) Google TV Remote for Android: http://code.google.com/p/google-tv-remote/ Pairing Protocol: http://code.google.com/p/google-tv-pairing-protocol/ Anymote Protocol: http://code.google.com/p/anymote-protocol/ Protocol Buffers: http://code.google.com/p/protobuf/

Page 41: Trilha Android - Android Evolved
Page 42: Trilha Android - Android Evolved

Finally, another important piece of the Android pie is coming for emerging markets with

Android One, an affordable handset that will launch in India this fall for less than $100 with

more countries in line.

We have a great many screens in our lives these days, and Google wants every single one

of them to show you Android.

Page 43: Trilha Android - Android Evolved
Page 44: Trilha Android - Android Evolved
Page 45: Trilha Android - Android Evolved

Overview

Limited  APIs  –audio  &  messaging  –  but  it  will  get  be6er  

Limited  templates  for  safety  reasons  

Developer provides images, colors and strings

Extend existing apps

APIs, sample apps and simulators available

Driver responds to notifications

Text  -­‐>  Voice  -­‐>  Text    

Page 46: Trilha Android - Android Evolved

Intro -Demo

Download  Android  Auto  API  simulators  extras  using  SDK  Manager   adb  install  messaging-­‐simulator.apk  from  extras  folder   adb  install  media-­‐browser-­‐simulator.apk  from  extras  folder  

Download  sample  MessagingSerivceapp  and  install   h6p://developer.android.com/samples/MessagingService/index.html   adb  install  MessagingService.apk  

Send  message  from  MessageServiceapp  

View  in  Messaging  Simulator

Page 47: Trilha Android - Android Evolved

Intro -Demo

Page 48: Trilha Android - Android Evolved

Setting up your own hardware

Page 49: Trilha Android - Android Evolved

Setting up your own hardware

Using Pioneer AVH-4100NEX car stereo Parking brake bypass 2 Amp, 12V DC to 120V AC transformer

Follow instructions https://www.youtube.com/watch?v=QntZ3A4bG4w

Connect brake bypass Update Pioneer AVH firmware to 1.03 or above Install Android Auto from Google Play onto Android 5.x phone Connect Android phone using USB slot 2 Accept all warnings etc. Connect speakers, connect microphone

Page 50: Trilha Android - Android Evolved

Auto Enabling your App

Provide Android Auto with messages so that car can read them out

Page 51: Trilha Android - Android Evolved

Auto Enabling your App

Update  NoMficaMon  Builder  with  CarExtender  to  pass  message  to  car

Page 52: Trilha Android - Android Evolved

UI Guidelines - Minimizing driver distraction

Requirements  Fonts  &  Sizing  Text  String  Lengths  Contrast  RaMo  Night  vs  Day  modes  Imagery  &  Video  AdverMsing  Auto-­‐Scrolling  Text

Page 53: Trilha Android - Android Evolved

UI Guidelines -Design Principles

 Don’t  port  app  into  Android  Auto    Focus  on  primary  acMons  and  content    Don’t  include  complicated  flows    Keep  choices  to  recent,  frequent  or  favorite  type  choices    Complex  acMons  occur  on  mobile  app  when  car  is  stopped.

Page 54: Trilha Android - Android Evolved

UI Guidelines - 5 Discrete sections

 AcMvity  Bar  and  App  Switching    NavigaMon  Drawer    Overview  Screen    App  View  and  its  menu  (not  yet)    Demand  Layer

Page 55: Trilha Android - Android Evolved

UI Guidelines - 5 Discrete sections

 AcMvity  Bar  and  App  Switching

Page 56: Trilha Android - Android Evolved

UI Guidelines - 5 Discrete sections

NavigaMon  Drawer

Page 57: Trilha Android - Android Evolved

UI Guidelines - 5 Discrete sections

Overview  Screen

Page 58: Trilha Android - Android Evolved

UI Guidelines - 5 Discrete sections

Demand  Layer

Page 59: Trilha Android - Android Evolved

Getting it into the Google Play

Upload  to  Google  Play  in  the  alpha  channel  for  tesMng  Experience  the  joys  of  the  new  review  process  Publish  Wait  for  the  rest  of  the  world  to  catch  up

Page 60: Trilha Android - Android Evolved

Caveats

Driver  DistracMon    Should  be  mostly  voice  acMvated    Simulator  doesn’t  support  voice    NHTSA  2/12  guideline,  2  second  glance,  12  second  total  interacMon    Locked  Screen    Any  difficult  interacMons  take  place  when  car  is  parked    My  favorites  type  transacMons    Make  the  car  experience  be6er    Who  pays  for  any  recalls    More  FragmentaMon

Page 61: Trilha Android - Android Evolved

Predicting the Future

MORE  APIs  –fingers  crossed  at  Google  I/O  GamificaMon,  e.g.  Facebook  challenges  Cloud  based  apps  and  Mashups  OTA  Dealer  recalls  Connected  cars  DSRC  –Dedicated  Short  Range  CommunicaMons  Autonomous  cars

Page 62: Trilha Android - Android Evolved

Resources

h6p://developer.android.com/auto  h6ps://bitbucket.org/ChernyshovYuriy/openradio/overview  h6ps://www.youtube.com/watch?v=gSVLuaOTIPk(Auto  Messaging  app)  h6ps://www.youtube.com/watch?v=cMaVxgclsg(Auto  Intro)

Page 63: Trilha Android - Android Evolved
Page 64: Trilha Android - Android Evolved

Questions?

Page 65: Trilha Android - Android Evolved

Thank You!