android support package

Download Android Support Package

If you can't read please download the document

Upload: handaru-sakti

Post on 15-Jun-2015

369 views

Category:

Technology


2 download

DESCRIPTION

Backward compatibility in Android framework

TRANSCRIPT

  • 1. Android Support Package +Handaru Sakti

2. There are three things to remember about beinga starship captain: keep your shirt tucked in, godown with the ship... and never abandon amember of your crew.Captain Kathryn Janeway, Star Trek: VoyagerNo man left behind. U.S. Navy SEALs 3. Our Desserts:Data collected during a 14-day period ending on September 4, 2012,http://developer.android.com/about/dashboards/index.html 4. Damn...new APIs comes with new coolfeatures How to bring them to previous Android APIs? Android Support Package offers backwardcompatibility 5. Some Famous Features Fragment Viewpager NotificationCompat ShareCompat NavUtils and TaskStackBuilder Loader ServiceCompat LocalBroadcastManager Sadly...The ActionBar is not supported 6. FragmentA modular section of an activity, which has itsown lifecycle, receives its own input events,and which you can add or remove while theactivity is running (sort of like a "sub activity"that you can reuse in different activities). 7. ViewpagerLayout manager that allows the user to flip leftand right through pages of data 8. NotificationCompatLarge-format notifications that: include a lot of text. large image attachment. a list of (up to 5) strings. can apply a rich notification style. 9. ShareCompatFor sharing data between activities.ShareCompat provides functionality to extendtheACTION_SEND/ACTION_SEND_MULTIPLEprotocol and support retrieving more infoabout the activity that invoked a social sharingaction 10. NavUtils and TaskStackBuilderTo provide support for implementing theAndroid Design guidelines for navigation.These additions include a way to implementthe action bars Up button across versions. 11. Loader Introduced in Android 3.0, loader makes it easy toasynchronously load data in an activity or fragment. Loader has these characteristics: They are available to every Activity and Fragment. They provide asynchronous loading of data. They monitor the source of their data and deliver new results when the content changes. They automatically reconnect to the last loaders cursor when being recreated after a configuration change. Thus, they dont need to re-query their data. 12. ServiceCompatFor accessing features in Service introducedafter API level 4 in a backwards compatiblefashion 13. LocalBroadcastManagerTo allow applications to easily register for andreceive intents within a single applicationwithout broadcasting them globally. 14. 3 ASP v-4 Sorry to Cupcake, you are a man left behind v-13 v-7 (Special -> GridLayout) 15. Revision Until now, 10th revision More details:http://developer.android.com/tools/extras/support-library.html 16. Implementation Download via Android SDK Manager(/extras/android/compatibility/) Add to Build Path or bring to libs directorybelow root directory Import your class 17. Matur Suwun, Derek!GDG Surabaya DevFest 2012