Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[Murat Yener] L(e) Android: The whole android ecosystem experience with wear and glass

[Murat Yener] L(e) Android: The whole android ecosystem experience with wear and glass

Presentation from GDG DevFest - the biggest Google related event in Ukraine. October 24-25, Lviv. Learn more at http://devfest.gdg.org.ua/

Google Developers Group Lviv

October 25, 2014
Tweet

More Decks by Google Developers Group Lviv

Other Decks in Programming

Transcript

  1. L(e) Android
    Murat Yener

    View Slide

  2. Soo, who am I?!?
    Java, Web, Mobile, GWT, Flex Developer
    Android Developer at Intel
    Eclipse Comitter
    Book Author (Pro Java EE Design Patterns
    GDG Istanbul Organizer
    Conference Speaker (JavaOne, Devoxx, EclipseCon..)

    View Slide

  3. MORE - Professional Keynote Template 3
    Soo, what’s new??
    better OS?
    better UI/UX?
    faster VM?
    better tools?
    new nexus devices?
    there is more than that!!!

    View Slide

  4. wear auto
    tv
    phones
    tablets
    Phones/Tablets Glass/Wear TV Auto

    View Slide

  5. 5
    Phones and Tablets
    State of ART VM
    1
    2
    3
    Greener Droid
    Getting Professional
    Material Design

    View Slide

  6. 6
    Material Design
    -Bold graphics
    -Flat but layered design
    -Animations with mass and weight
    -Responsive interaction
    -Surface reaction
    -Transitions
    -Style, Typography, Icons…
    -New structure and layout principles
    better UI and UX…

    View Slide

  7. 7
    Google Glass
    Still ‘barely’ socially acceptable
    but enormous fun!

    View Slide

  8. who doesn’t like
    selfies?

    View Slide

  9. 9
    Google Glass - Development
    Glassware: web apps for Glass
    GDK: android apps for Glass

    View Slide

  10. 10
    Google Glass - GDK
    Android Developer?
    - No touch screen
    - Limited CPU and Battery
    - Actions! (Take a photo, Start a run…)
    - Simple Flow
    - Less interaction

    View Slide

  11. 11
    Google Glass - GDK
    WAKE
    1
    2
    ACTION 3
    CARDS
    4
    2nd ACTION
    5
    SLEEP

    View Slide

  12. 12
    Google Glass -GDK
    Android != cellphone
    don’t behave glass as if it is a cellphone!

    View Slide

  13. 13
    Google Glass - Glassware
    Web Developer?
    - Similar OAuth Web app
    - but very small screen
    - don’t try to render a whole web page
    - Java, Python starter apps…

    View Slide

  14. 14
    Google Glass - Glassmaker
    or GlassMaker
    - eclipse based
    - open source
    - Spring Security
    - Card Templates
    - Emulator (hey its web!!)
    - Remote deploy to Glass (YES!!)

    View Slide

  15. 15
    Android Wear

    View Slide

  16. 16
    #androidwear

    View Slide

  17. 17

    View Slide

  18. 18
    Android Wear - Still need phone?
    - Replaces the phone?
    - Uses bluetooth, will my phone battery die?
    - Phone calls?
    - More data?

    View Slide

  19. 19
    Android Wear - What wear is not
    a small phone!!

    View Slide

  20. 20
    Android Wear
    timely,
    relevant,
    automatic
    fast
    sharp
    immediate
    helpful
    respectful
    responsive
    zero low interaction

    View Slide

  21. 21
    Android Wear
    just in time,
    immediate

    View Slide

  22. 22
    Android Wear
    help,
    suggest

    View Slide

  23. 23
    Android Wear
    simple interaction,
    less choices

    View Slide

  24. 24
    Android Wear - Notifications
    Automatically works!
    -Phone transmits notifications to wear
    -You can code wear only notifications
    CODE

    View Slide

  25. 25
    Replies
    Pages
    Stacks
    Android Wear

    View Slide

  26. 26
    Android Wear -Development
    dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.google.android.support:wearable:+'
    compile 'com.google.android.gms:play-services-wearable:+'
    }
    1

    View Slide

  27. 27
    Android Wear -Development
    2






    View Slide

  28. 28
    private void displaySpeechRecognizer() {
    Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
    intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
    RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
    startActivityForResult(intent, SPEECH_REQUEST_CODE);
    }
    Android Wear -Development
    3

    View Slide

  29. 29
    Android Wear -Development
    4
    // Build the notification and add the action via WearableExtender
    Notification notification =
    new NotificationCompat.Builder(mContext)
    .setSmallIcon(R.drawable.ic_message)
    .setContentTitle(getString(R.string.title))
    .setContentText(getString(R.string.content))
    .extend(new WearableExtender().addAction(action))
    .build();

    View Slide

  30. 30
    Android Wear -Development
    5
    Manifest:


    android:name="com.google.android.clockwork.home.category.HOME_BACKGROUND" />

    Activity:
    final WatchViewStub stub = (WatchViewStub) findViewById(R.id.watch_view_stub);

    intentFilter.addAction(Intent.ACTION_TIME_CHANGED);

    private BroadcastReceiver mTimeInfoReceiver = new BroadcastReceiver(){
    @Override
    public void onReceive(Context arg0, Intent intent) {
    mTime.setText(Calendar.getInstance().getTime());
    }
    }

    View Slide

  31. 31
    Android TV - History
    Google TV Nexus Q
    Initial version.
    Google TV devices
    were released from
    Logitech and Sony.
    Not gained much
    popularity.
    I/O prototype. Very
    high quality built but
    no one really
    understand what it
    is for.
    IMAGE IMAGE

    View Slide

  32. 32
    Android TV - A New Hope?
    Released in I/O 14
    - a new better iteration
    - sleek UI, new but familiar UX
    - gamepad+++
    - not much titles - - -
    - movies? music?

    View Slide

  33. 33
    Nexus Player
    Commercial version of Android TV
    - will encourage more apps
    - more fun than Apple TV
    - Screen casting, games, movies?…

    View Slide

  34. 34
    Nexus Player - Development
    - a whole new world??
    - no touchscreen
    - support voice commands but?!?
    - physical gamepad!
    - Case Study: Asphalt

    View Slide

  35. 35
    Nexus Player - Development
    - most phone layouts and assets will work
    - controls? a whole new world
    - separate UI and controls
    - reuse as much
    - still early but promising

    View Slide

  36. 36
    Android Auto
    Is it too early?
    - a long list of car manufacturers
    - powered by your android device
    - car system hosts UI/UX
    - not much additional hardware
    - guaranteed to have 3G, wifi, bluetooth..

    View Slide

  37. 37
    whole new UX?!?
    - similar to watch, minimal
    interaction
    - more screen but keep text
    readable
    - hands free! use voice
    - do not spam the user! ask if he/
    she cares
    Android Auto - The Road Ahead

    View Slide

  38. 38
    Out In
    games!
    video streaming
    rich UI
    user interaction
    typing!
    reading
    connectivity?!?
    Android Auto
    maps!
    poi based search
    audio streaming
    simple UI
    less interaction
    voice
    audio feedback
    car integration! (economy,
    stats…)

    View Slide

  39. Come join the fun, join a GDG!!
    @yenerm
    @gdgistanbul
    [email protected]

    View Slide