Google I/O 2011, Android Honeycomb Highlights
Upcoming SlideShare
Loading in...5
×
 

Google I/O 2011, Android Honeycomb Highlights

on

  • 8,392 views

 

Statistics

Views

Total Views
8,392
Views on SlideShare
4,357
Embed Views
4,035

Actions

Likes
3
Downloads
121
Comments
0

30 Embeds 4,035

http://blog.gasolin.idv.tw 1939
http://blog.himanshusheth.net 1860
http://emboh-wesss.blogspot.com 44
http://zootlinux.blogspot.com 29
http://www.aachen-gtug.org 26
http://emboh-wesss.blogspot.in 21
http://lanyrd.com 19
url_unknown 17
http://feeds.feedburner.com 17
http://www.hksilicon.com 17
http://www.webpagetest.org 11
http://emboh-wesss.blogspot.de 4
http://emboh-wesss.blogspot.ca 4
http://himanshusheth.net 3
http://zootlinux.blogspot.co.uk 3
http://translate.googleusercontent.com 3
http://aachen-gtug.org 2
http://emboh-wesss.blogspot.mx 2
http://webcache.googleusercontent.com 2
http://emboh-wesss.blogspot.co.at 2
http://zootlinux.blogspot.cz 1
http://zootlinux.blogspot.nl 1
http://ranksit.com 1
http://zootlinux.blogspot.com.br 1
http://zootlinux.blogspot.de 1
http://emboh-wesss.blogspot.gr 1
http://emboh-wesss.blogspot.com.ar 1
http://emboh-wesss.blogspot.com.au 1
http://emboh-wesss.blogspot.no 1
http://zootlinux.blogspot.mx 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Romain + Chet\nShow home screen, launcher, basic UI\nDemos of honeycomb apps: gmail, contacts, books, music, etc.\nWidgets: show widget list, show bookmarks, books, youtube, calendar, gmail, ...\n(choreograph)\n
  • \n
  • \n
  • Larger devices may be able to fit what might otherwise be multiple activities\n
  • One activity, single layout with both fragments\n
  • two activities, each with fragment\n
  • \n
  • Buttons: Home, back, Recent apps\nNotifications\nCustomized notifications with Notification.Builder\n
  • Buttons: Home, back, Recent apps\nNotifications\nCustomized notifications with Notification.Builder\n
  • Buttons: Home, back, Recent apps\nNotifications\nCustomized notifications with Notification.Builder\n
  • Buttons: Home, back, Recent apps\nNotifications\nCustomized notifications with Notification.Builder\n
  • Lights-out\n
  • Lights-out\n
  • Lights-out\n
  • Lights-out\n
  • Lights-out\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • view properties: cheap to change transform/alpha properties with layers or display lists\n
  • Romain (photo app) + Chet (API demos)\nPhoto app: animation and hardware support for layers\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • USB: New USB stack for arbitrary device handling, new input events for keyboards and pointers\nCamera: MTP Media Transfer Protocol API for device detection and storage\nWigets: resizable by users, attribute flag in widget declaration\nRTP: Real Time Protocol, for audio streaming, VOIP, conferencing\nOptimizations: more Framework stuff to make rendering faster\n
  • USB: New USB stack for arbitrary device handling, new input events for keyboards and pointers\nCamera: MTP Media Transfer Protocol API for device detection and storage\nWigets: resizable by users, attribute flag in widget declaration\nRTP: Real Time Protocol, for audio streaming, VOIP, conferencing\nOptimizations: more Framework stuff to make rendering faster\n
  • USB: New USB stack for arbitrary device handling, new input events for keyboards and pointers\nCamera: MTP Media Transfer Protocol API for device detection and storage\nWigets: resizable by users, attribute flag in widget declaration\nRTP: Real Time Protocol, for audio streaming, VOIP, conferencing\nOptimizations: more Framework stuff to make rendering faster\n
  • \n
  • \n
  • \n
  • \n

Google I/O 2011, Android Honeycomb Highlights Google I/O 2011, Android Honeycomb Highlights Presentation Transcript

  • Honeycomb HighlightsRomain Guy @romainguyChet Haase @chethaaseMay 10, 2011Questions http://goo.gl/mod/8NZpFeedback http://goo.gl/hD5M9Hashtags #io2011, #Android
  • Honeycomb Highlights Honeycomb and Get ItRomain Guy @romainguyChet Haase @chethaaseMay 10, 2011Questions http://goo.gl/mod/8NZpFeedback http://goo.gl/hD5M9Hashtags #io2011, #Android
  • Honeycomb• The tablet release• User improvements• Developer improvements
  • The Tablet Release• Tablet != Phone• Screen size• Input• More memory, faster CPU, multi-core – But more pixels...• GPU!
  • Honeycomb• The tablet release• User improvements• Developer improvements
  • UI Improvements• Home screen, new ‘Holo’ theme• Keyboard• Text selection• USB device connectivity• Action Bar, System Bar• Recent Apps
  • New and Improved Applications• New – Books – Movie Studio• Improved – Market – Browser – Contacts – Music – Gmail – ...
  • New Widgets• Richer• More interactive• Books, Bookmarks, Gmail, Calendar, ...
  • Demo
  • Honeycomb• The tablet release• User improvements• Developer improvements
  • Fragments• Like mini-activities• For flexible screen format situations – landscape vs. portrait – large vs. small
  • Fragments
  • Fragments• Single activity, multiple fragments
  • Fragments• Separate activities
  • Fragments: For More Info• Read Dianne Hackborn’s The Android 3.0 Fragments API – android-developers.blogspot.com• Get “Android Compatibility package” in the SDK Updater – Fragments now available in 1.6+ !!!!
  • System Bar
  • System Bar
  • System Bar
  • System Bar
  • System Bar: Always On
  • System Bar: Always On
  • Action BarHome/Up Navigation Actions Text Actions
  • Action BarHome/Up Navigation Actions Overflow Text Actions
  • Action BarHome/Up Navigation Actions Text Actions
  • Action Bar Contextual ActionBar Text Actions
  • Action Bar @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.actions, menu); return true; }
  • Action Bar <menu> <item android:id="@+id/action_edit" android:icon="@android:drawable/ic_menu_edit" android:showAsAction="always" android:title="@string/action_bar_edit" /> <item android:id="@+id/action_share" android:icon="@android:drawable/ic_menu_share" android:showAsAction="ifRoom" android:title="@string/action_bar_share" /> </menu>
  • Action Bar <menu> <item android:id="@+id/action_edit" android:icon="@android:drawable/ic_menu_edit" android:showAsAction="always" android:title="@string/action_bar_edit" /> <item android:id="@+id/action_share" android:icon="@android:drawable/ic_menu_share" android:showAsAction="ifRoom" android:title="@string/action_bar_share" /> </menu>
  • Renderscript• Native code for fast graphics, computation• Platform-independent• Syntax based on C99• Uses GPU, CPU, multi-core• Used in Books, YouTube, Live Wallpapers
  • Renderscript: HelloWorldRS.java public class HelloWorldRS { private ScriptC_helloworld mScript; public void init(RenderScriptGL rs, Resources res) { mScript = new ScriptC_helloworld(rs, res, R.raw.helloworld); rs.bindRootScript(mScript); } public void onActionDown(int x, int y) { mScript.set_gTouchX(x); mScript.set_gTouchY(y); } }
  • Renderscript: helloworld.rs int gTouchX; int gTouchY; void init() { gTouchX = 50.0f; gTouchY = 50.0f; } int root(int launchID) { rsgClearColor(0.0f, 0.0f, 0.0f, 0.0f); rsgFontColor(1.0f, 1.0f, 1.0f, 1.0f); rsgDrawText("Hello World!", gTouchX, gTouchY); return 20; }
  • Renderscript• Read Jason Sams’s Renderscript articles – android-developers.blogspot.com• Play with the SDK Renderscript samples
  • Graphics Acceleration• OpenGL acceleration for most graphics operations – Canvas.drawLine(), Canvas.drawBitmap(), ...• Used in Launcher, Gmail, Contacts, Calendar, YouTube, Browser, Maps, Settings, ...
  • Acceleration: The Complex API Details
  • Acceleration: The Complex API Details <application android:hardwareAccelerated=”true”>
  • Acceleration: The Complex API Details <application android:hardwareAccelerated=”true”> • Opt-in via AndroidManifest.xml • Selectively disable at Activity, Window, or View level
  • More Details• Come to Accelerated Android Rendering – Tomorrow 10:45• Read Android 3.0 Hardware Acceleration – android-developers.blogspot.com
  • Animation Framework• New system built on “property animation” – Any object, any property, any type• New properties on View – alpha, translationX/Y, scaleX/Y, rotation, ...
  • Animation Framework• New system built on “property animation” – Any object, any property, any type• New properties on View – alpha, translationX/Y, scaleX/Y, rotation, ...ObjectAnimator.ofFloat(target, “alpha”, 0f).start();
  • Demo
  • PhotoAlbum Animations if (mPanelVisible) { mPanelAnimator = ObjectAnimator.ofFloat(mPanel, "x", 0.0f); } else { mPanelAnimator = ObjectAnimator.ofFloat(mPanel, "x", -mPanel.getWidth()); } mPanelAnimator.start();
  • PhotoAlbum Animations mPanel.setLayerType(View.LAYER_TYPE_HARDWARE, null); if (mPanelVisible) { mPanelAnimator = ObjectAnimator.ofFloat(mPanel, "x", 0.0f); } else { mPanelAnimator = ObjectAnimator.ofFloat(mPanel, "x", -mPanel.getWidth()); } mPanelAnimator.start(); mPanelAnimator.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { mPanel.setLayerType(View.LAYER_TYPE_NONE, null); } });
  • PhotoAlbum Animations if (mPanelAnimator != null && mPanelAnimator.isRunning()) { mPanelAnimator.reverse(); return; } mPanel.setLayerType(View.LAYER_TYPE_HARDWARE, null); if (mPanelVisible) { mPanelAnimator = ObjectAnimator.ofFloat(mPanel, "x", 0.0f); } else { mPanelAnimator = ObjectAnimator.ofFloat(mPanel, "x", -mPanel.getWidth()); } mPanelAnimator.start(); mPanelAnimator.addListener(new AnimatorListenerAdapter() { @Override public void onAnimationEnd(Animator animation) { mPanel.setLayerType(View.LAYER_TYPE_NONE, null); } });
  • For More Information• Read Animation in Honeycomb – android-developers.blogspot.com• Check out the animation demos in the SDK
  • And Much, Much More...• Clipboard• Drag and Drop• HTTP Live Streaming• Pluggable DRM framework• Encrypted storage• New/improved components – DatePicker, NumberPicker, StackView, CalendarView, ...• Tools – UI Builder, code completion, ... – Android Development Tools, Wednesday@3
  • More in Android 3
  • More in Android 3.1 NeUSB: Beyond keyboards w !External camera support Resizable widgets RTP APIPerformance optimizations ViewPropertyAnimator
  • The Future• Honeycomb was optimized for tablets – But we’re working on bringing the Honeycomb UI and functionality to smaller screen devices• More, better, fancier, faster, lovelier
  • For More Information• At Google IO – Android USB Accessory Mode: Tuesday 1:15 – Fireside Chat: Tuesday 2:30 – Android UIs for Phones and Tablets: Wednesday 12:30 – Android Development Tools: Wednesday 3:00 – Memory Management for Android Apps: Wednesday 4:15• After Google IO – Android Developers Blog: android-developers.blogspot.com – Romain’s blog: curious-creature.org – Chet’s blog: graphics-geek.blogspot.com
  • Questions http://goo.gl/mod/8NZpQ&A Feedback http://goo.gl/hD5M9 Hashtags #io2011, #Android