Android 3.0 Portland Java User Group 2011-03-15
Upcoming SlideShare
Loading in...5
×
 

Android 3.0 Portland Java User Group 2011-03-15

on

  • 5,668 views

Android 3.0

Android 3.0
Portland Java User Group
Portland Oregon
2011-03-15

Statistics

Views

Total Views
5,668
Views on SlideShare
5,334
Embed Views
334

Actions

Likes
2
Downloads
236
Comments
1

11 Embeds 334

http://www.servicesmobiles.fr 211
http://www.la-cremerie.com 103
http://servicesmobiles.fr 7
http://servicesmobiles.typepad.com 5
http://static.slidesharecdn.com 2
http://www.netvibes.com 1
http://blog.websourcing.fr 1
http://10.150.200.76 1
http://webcache.googleusercontent.com 1
http://www.tech-it.ma 1
http://www.servicesmobiles.typepad.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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…
  • interesting presentation - especially a good fragments explanation which have defeated my brain up until now....
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Android 3.0 Portland Java User Group 2011-03-15 Android 3.0 Portland Java User Group 2011-03-15 Presentation Transcript

  • Android 3.0Portland Java User Group Sean Sullivan March 15, 2011
  • • Introduction• Android devices• Android 3.0• App development
  • Mobile World Congress February 2011
  • source: comScore
  • Android phones
  • 2008
  • 2009
  • 2010
  • 2011
  • Android tablets
  • XOOM tech specs • Android 3.0 • 10.1 inch touchscreen display • 1280 x 800 • 160 dpi
  • XOOM tech specs • NVIDIA Tegra 2 dual-core chipset • HDMI connector • two cameras • no physical keyboard
  • What’s new in Android 3.0?
  • • ‘holographic’ UI theme• Action Bar• Fragments• Drag and Drop• Digital Rights Management• and more...
  • ‘holographic’ UI
  • Action Bar
  • “The Action Bar is a widget for activities thatreplaces the traditional title bar at the top ofthe screen.By default, the Action Bar includes theapplication logo on the left side, followed bythe activity title, and any available itemsfrom the Options Menu on the right side.”
  • Action Bar
  • Fragments
  • “A Fragment represents a behavior or a portion of userinterface in an Activity. You can combine multiple fragmentsin a single activity to build a multi-pane UI and reuse afragment in multiple activities.You can think of a fragmentas a modular section of an activity, which has its ownlifecycle, receives its own input events, and which you canadd or remove while the activity is running.” http://developer.android.com/guide/topics/fundamentals/fragments.html
  • • Fragments decompose application functionality and UI into reusable modules• Add multiple fragments to a screen to avoid switching activities• Fragments have their own lifecycle, state, and back stack• Fragments require API Level "Honeycomb" or greater http://developer.android.com/guide/topics/fundamentals/fragments.html
  • <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"        android:orientation="horizontal"        android:layout_width="match_parent"        android:layout_height="match_parent">    <fragment class="com.example.android.apis.app.TitlesFragment"            android:id="@+id/titles" android:layout_weight="1"            android:layout_width="0px"            android:layout_height="match_parent" />    <FrameLayout android:id="@+id/details" android:layout_weight="1"            android:layout_width="0px"            android:layout_height="match_parent" />   </LinearLayout>
  • public static class TitlesFragment extends ListFragment {    private boolean mDualPane;    private int mCurCheckPosition = 0;    @Override    public void onActivityCreated(Bundle savedState) {        super.onActivityCreated(savedState); // do something here    }    @Override    public void onSaveInstanceState(Bundle outState) {        super.onSaveInstanceState(outState);        outState.putInt("curChoice", mCurCheckPosition);    }    @Override    public void onListItemClick(ListView l, View v, int pos, long id) {        // do something here    }}
  • Drag and drop
  • Renderscript
  • “The Renderscript rendering and computational APIsoffer a low-level, high performance means of carrying outmathematical calculations and 3D graphics rendering.”
  • New animation API
  • Digital Rights Management API
  • The same security issues that have led to piracyconcerns on the Android platform have made itdifficult for us to secure a common Digital RightsManagement (DRM) system on these devices. [...]Although we don’t have a common platformsecurity mechanism and DRM, we are able to workwith individual handset manufacturers to addcontent protection to their devices. November 2010 http://blog.netflix.com/2010/11/netflix-on-android.html
  • Unfortunately, this is a much slower approach and leads to a fragmented experience on Android, in which some handsets will have access to Netflix and others won’t.We will also continue to work with the Androidcommunity, handset manufacturers, carriers, andother service providers to develop a standard,platform-wide solution that allows content providersto deliver their services to all Android-based devices November 2010 http://blog.netflix.com/2010/11/netflix-on-android.html
  • Application development
  • Android emulator
  • Emulator performance
  • About emulator performanceBecause the Android emulator must simulate the ARM instruction seton your computer and the WXGA screen is significantly larger than atypical virtual device, emulator performance is much slower than a realdevice. source: developer.android.com
  • In particular, initializing the emulator can be slow and can take severalminutes, depending on your hardware. When the emulator is booting,there is limited user feedback, so please be patient and wait until yousee the home screen (or lock screen) appear. source: developer.android.com
  • However, you dont need to boot the emulator each time you rebuildyour application—typically you only need to boot at the start of asession and keep it running. Also see the tip below for informationabout using a snapshot to drastically reduce startup time after the firstinitialization.Were working hard to resolve the performance issues and it willimprove in future tools releases. source: developer.android.com
  • Sample code
  • API differences
  • http://developer.android.com/sdk/api_diff/11/changes.html
  • Best practices
  • http://android-developers.blogspot.com/2011/02/best-practices-for-honeycomb-and.html
  • What’s next?
  • Final thoughts• Android 3.0 is for tablets, not phones• XOOM is available now• Additional Honeycomb tablets coming soon• Learn the Fragments API
  • Thank you