Fordevelopers,theAndroid3.0platformisavailableasadownloadablecomponentfortheAndroidSDK.ThedownloadableplatformincludesanAndroidlibraryandsystemimage,aswellasasetofemulatorskinsandmore.Thedownloadableplatformincludesnoexternallibraries.
Fordevelopers,theAndroid3.0platformisavailableasadownloadablecomponentfortheAndroidSDK.ThedownloadableplatformincludesanAndroidlibraryandsystemimage,aswellasasetofemulatorskinsandmore.TogetstarteddevelopingortestingagainstAndroid3.0,usetheAndroidSDKManagertodownloadtheplatformintoyourSDK.
Thesectionsbelowprovideatechnicaloverviewofwhat'snewfordevelopersinAndroid3.0,includingnewfeaturesandchangesintheframeworkAPIsincethepreviousversion.
YoucanalsouseafragmentwithoutprovidingaUIandinsteadusethefragmentasaworkerfortheactivity,suchastomanagetheprogressofadownloadthatoccursonlywhiletheactivityisrunning.
Additionally:
Applicationscannowcopyandpastedata(beyondmeretext)toandfromthesystem-wideclipboard.Clippeddatacanbeplaintext,aURI,oranintent.
Byprovidingthesystemaccesstothedatayouwanttheusertocopy,throughacontentprovider,theusercancopycomplexcontent(suchasanimageordatastructure)fromyourapplicationandpasteitintoanotherapplicationthatsupportsthattypeofcontent.
Newfeaturesinclude:
AndroidnowincludesAPIsforapplicationstoverifythestateofconnectedBluetoothA2DPandheadsetprofiledevices.Forexample,applicationscanidentifywhenaBluetoothheadsetisconnectedforlisteningtomusicandnotifytheuserasappropriate.ApplicationscanalsoreceivebroadcastsforvendorspecificATcommandsandnotifytheuseraboutthestateoftheconnecteddevice,suchaswhentheconnecteddevice'sbatteryislow.
Anallnewflexibleanimationframeworkallowsyoutoanimatearbitrarypropertiesofanyobject(View,Drawable,Fragment,Object,oranythingelse).Itallowsyoutodefineseveralaspectsofananimation,suchas:
Forapplicationdevelopers,theframeworkoffersanabstract,unifiedAPIthatsimplifiesthemanagementofprotectedcontent.TheAPIhidesthecomplexityofDRMoperationsandallowsaconsistentoperationmodeforbothprotectedandunprotectedcontent,andacrossavarietyofDRMschemes.
Fordevicemanufacturers,contentowners,andInternetdigitalmediaproviderstheDRMframeworkspluginAPIprovidesameansofaddingsupportforaDRMschemeofchoiceintotheAndroidsystem,forsecureenforcementofcontentprotection.
ThepreviewreleasedoesnotprovideanynativeDRMplug-insforcheckingandenforcingdigitalrights.However,devicemanufacturersmayshipDRMplug-inswiththeirdevices.
Previously,onlyasingleviewcouldaccepttoucheventsatonetime.Android3.0addssupportforsplittingtoucheventsacrossviewsandevenwindows,sodifferentviewscanacceptsimultaneoustouchevents.
However,thefollowingpropertiesallowyoutodisablesplittoucheventsacrossviewsinsidespecificviewgroupsandacrosswindows.
TheBrowserapplicationaddsthefollowingfeaturestosupportwebapplications:
TheAndroid3.0platformdeliversanupdatedversionoftheframeworkAPI.TheAndroid3.0APIisassignedanintegeridentifier—11—thatisstoredinthesystemitself.Thisidentifier,calledthe"APILevel",allowsthesystemtocorrectlydeterminewhetheranapplicationiscompatiblewiththesystem,priortoinstallingtheapplication.
TouseAPIsintroducedinAndroid3.0inyourapplication,youneedcompiletheapplicationagainsttheAndroidlibrarythatisprovidedintheAndroid3.0SDKplatform.Dependingonyourneeds,youmightalsoneedtoaddanandroid:minSdkVersion="11"attributetothe