Você está na página 1de 15

Android L(Lollipop)

facebook.com/apex.tgi
twitter.com/ApextgiNoida
pinterest.com/apextgi
T&C Applied
Android L(Lollipop)

The L e!eloper "re!iew gi!es #o$ an ad!ance look at the


$pcoming release for the Android platform% which o&ers new
feat$res for $sers and app de!elopers.

The L e!eloper "re!iew is intended forde!eloper earl#


adopters andtesters.
Android L(Lollipop)

The (.( release introd$ced a new% experimental Android


r$ntime% A)T. *nder

(.(% A)T was optional% and the defa$lt r$ntime remained


al!ik .+$t with the

L e!eloper "re!iew% A)T is now the defa$lt r$ntime.


Android L(Lollipop)

,ome of the ma-or new feat$res are.

Ahead/of/Time (A0T) compilation

1mpro!ed garbage collection (2C)

1mpro!ed deb$gging s$pport

3ost Android apps sho$ld -$st work witho$t change $nder A)T.
4owe!er% some techni5$es that work on al!ik do not work on
A)T. 6or information abo$t the most important iss$es%
see7erif#ing App +eha!ior on the Android )$ntime (A)T). "a#
partic$lar attention if.
Android L(Lollipop)

App $ses 8a!a Nati!e 1nterface (8N1) to r$n C/C99 code.

*se de!elopment tools that generate non/standard code (s$ch


as some obf$scators).

*se techni5$es that are incompatible with compacting garbage


collection. (A)T does not c$rrentl# implement compacting 2C%
b$t compacting 2C is $nder de!elopment in the Android 0pen/
,o$rce "ro-ect.)
Android L(Lollipop) *ser 1nterface
3aterial design s$pport

The $pcoming release adds s$pport for Android:s new material


design st#le. 1t can create apps with material design that are
!is$all# d#namic and ha!e *1 element transitions that feel
nat$ral to $sers. This s$pport incl$des.

The material theme

7iew shadows

The )ec#cler7iew widget


Android L(Lollipop) 2raphics

rawable animation and st#ling e&ects

3aterial design animation and acti!it# transition e&ects

Animators for !iew properties based on the state of a !iew

C$stomi;able *1 widgets and app bars with color palettes that #o$ control

The L e!eloper "re!iew adds 8a!a interfaces and nati!e


s$pport for 0pen2L <, =.>.
Android L(Lollipop) 3$ltimedia

?e# new f$nctionalit# pro!ided in 0pen2L <, =.> incl$des.

Comp$te shaders

,eparate shader ob-ects

1ndirect draw commands

3$ltisample and stencil text$res

,hading lang$age impro!ements

<xtensions for ad!anced blend modes and deb$gging

+ackward compatibilit# with 0pen2L <, @.A and =.A


Android L(Lollipop) 3$ltimedia

The L e!eloper "re!iew introd$ces the new


android.hardware.camera@ A"1 to facilitate Bne/grain photo
capt$re and image processing. 1t can now programmaticall#
access the camera de!ices a!ailable to the s#stem with
Camera3anager.getCamera1dList() and connect to a speciBc
de!ice with Camera3anager.openCamera().

To start capt$ring images% create a CameraCapt$re,ession and


specif# the ,$rface ob-ects for the capt$red images. The
CameraCapt$re,ession can be conBg$red to take single shots
or m$ltiple images in a b$rst.
Android L(Lollipop) 3$ltimedia

To be notiBed when new images are capt$red% implement the


CameraCapt$re,ession.Capt$reListener() interface and set it in
capt$re re5$est. Now when the s#stem completes the image
capt$re re5$est% CameraCapt$re,ession.Capt$reListener()
recei!es a call to onCapt$reCompleted()% pro!iding with the
image capt$re metadata in a Capt$re)es$lt.

To see an example of how to $se the $pdated Camera A"1% refer


to the Camera@+asic and Camera@7ideo implementation
samples in this release.
Android L(Lollipop) 3$ltimedia

A$dio pla#back

1t allow to s$ppl# a$dio data


(android.media.A$dio6ormat.<NC01N2C"C3C6L0AT). in Doating/point
format .This permits greater d#namic range% more consistent precision% and
greater headroom.

6loating/point arithmetic is especiall# $sef$l d$ring intermediate


calc$lations. "la#back end/points $se integer format for a$dio data% and
with lower bit/depth. (1n the L e!eloper "re!iew% portions of the internal
pipeline are not #et Doating/point.)
Android L(Lollipop) 3$ltimedia

Android L app s$ppl# a$dio data as a +#te+$&er% in the same format as


pro!ided b# 3ediaCodec.The E)1T<CN0NC+L0C?1N2 option can simplif#
b$&ering and m$ltithreading for some apps.

3edia pla#back control

1t can b$ild own media controller app with the new


android.media.session.3ediaController class% which pro!ides simpliBed
transport controls A"1s that replace those in )emoteControlClient.
Android L(Lollipop) 3$ltimedia

The 3ediaController class allows thread/safe control of pla#back from a


non/*1 process% making it easier to control media pla#back ser!ice from
appFs $ser interface.

1t can also create m$ltiple controllers to send pla#back commands% media


ke#s% and other e!ents to the same ongoing
android.media.session.3edia,ession. Ehen it add a controller% calls
3edia,ession.get,essionToken() to re5$est an access token in order for
app to interact with the session.
Android L(Lollipop) 3$ltimedia

1t can now send transport commands s$ch as Gpla#G% GstopG% GskipG% and
Gset ratingG b# $sing 3ediaController.TransportControls. To handle in/bo$nd
media transport commands from controllers attached to the session%
o!erride the callback methods in 3edia,ession.TransportControlsCallback.

Also create rich notiBcations that allow pla#back control tied to a media
session with the new android.app.NotiBcation.3edia,t#le class. +# $sing
the new notiBcation and media A"1s% will ens$re that the ,#stem *1 knows
abo$t pla#back and can extract and show alb$m art.
Thank Ho$
Apex TG India
E-20 , Sector 63, Noida
0120
4029000/9024/9025/902
!91-99535"454"
E#ai$ id%
pratap&apext'i(co#
,ta# Connected with $s for more ""T on
Android
T&C Applied

Você também pode gostar