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 full-size 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 full-size 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 full-size slide

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

    View full-size slide

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

    View full-size 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 full-size slide

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

    View full-size slide

  8. who doesn’t like
    selfies?

    View full-size slide

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

    View full-size 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 full-size slide

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

    View full-size slide

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

    View full-size 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 full-size 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 full-size slide

  15. 15
    Android Wear

    View full-size slide

  16. 16
    #androidwear

    View full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  20. 21
    Android Wear
    just in time,
    immediate

    View full-size slide

  21. 22
    Android Wear
    help,
    suggest

    View full-size slide

  22. 23
    Android Wear
    simple interaction,
    less choices

    View full-size slide

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

    View full-size slide

  24. 25
    Replies
    Pages
    Stacks
    Android Wear

    View full-size slide

  25. 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 full-size slide

  26. 27
    Android Wear -Development
    2






    View full-size slide

  27. 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 full-size slide

  28. 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 full-size slide

  29. 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 full-size slide

  30. 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 full-size slide

  31. 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 full-size slide

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

    View full-size slide

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

    View full-size slide

  34. 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 full-size slide

  35. 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 full-size slide

  36. 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 full-size slide

  37. 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 full-size slide

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

    View full-size slide