INTRODUCTION
XVIII
#HAPTER)NTERACTINGWITH.ETWORKSAND$ATABASESINTRODUCESYOUTO*AVASNETWORK!0)SEG
SOCKETS)TALSOINTRODUCESYOUTOTHE*$"#!0)FORINTERACTINGWITHDATABASES
#HAPTER0ARSING#REATINGAND4RANSFORMING8-,$OCUMENTSDIVESINTO*AVAS8-,SUPPORTBYFIRST
PRESENTINGANINTRODUCTIONTO8-,INCLUDING$4$SANDSCHEMAS)TNEXTEXPLORESTHE3!8$/-3T!8
80ATHAND83,4!0)SANDEVENBRIEFLYTOUCHESONTHE6ALIDATION!0)7HILEEXPLORING80ATHYOU
ENCOUNTERNAMESPACECONTEXTSEXTENSIONFUNCTIONSANDFUNCTIONRESOLVERSANDVARIABLESANDVARIABLE
RESOLVERS
#HAPTER7ORKINGWITH7EB3ERVICESINTRODUCESYOUTO*AVASSUPPORTFOR3/!0BASEDAND2%34FUL
WEBSERVICES"ESIDESPROVIDINGYOUWITHTHEBASICSOFTHESEWEBSERVICECATEGORIES#HAPTERPRESENTS
SOMEADVANCEDTOPICSSUCHASWORKINGWITHTHE3!!*!0)TOCOMMUNICATEWITHA3/!0BASEDWEB
SERVICEWITHOUTHAVINGTORELYON*!8739OULLAPPRECIATEHAVINGLEARNEDABOUT8-,IN#HAPTER
BEFOREDIVINGINTOTHISCHAPTER
#HAPTER*AVA-EETS!NDROIDHELPSYOUPUTTOUSESOMEOFTHEKNOWLEDGEYOUVEGATHEREDIN
PREVIOUSCHAPTERSBYSHOWINGYOUHOWTOUSE*AVATOWRITEAN!NDROIDAPPSSOURCECODE4HISCHAPTER
INTRODUCESYOUTO!NDROIDDISCUSSESITSARCHITECTURESHOWSYOUHOWTOINSTALLNECESSARYTOOLSAND
DEVELOPSASIMPLEAPP
!SWELLASCREATINGTHESETWELVECHAPTERS)VECREATEDFOURAPPENDICES
!PPENDIX!3OLUTIONSTO%XERCISESPRESENTSTHESOLUTIONSTOTHEPROGRAMMINGEXERCISESTHATAPPEAR
NEARTHEENDOF#HAPTERSTHROUGH
!PPENDIX"3CRIPTING!0)AND$YNAMICALLY4YPED,ANGUAGE3UPPORTINTRODUCESYOUTO*AVAS3CRIPTING
!0)ALONGWITHTHESUPPORTFORDYNAMICALLYTYPEDLANGUAGESTHATSNEWIN*AVA
!PPENDIX#/DDSAND%NDSINTRODUCESYOUTOADDITIONAL!0)SANDARCHITECTURETOPICS!CCESSIBILITY
"YTE!RRAY/UTPUT3TREAMAND"YTE!RRAY)NPUT3TREAMCLASSLOADERS#ONSOLE$ESKTOP$RAGAND$ROP
$YNAMIC,AYOUT%XTENSION-ECHANISMAND3ERVICE,OADER&ILE0ARTITION3PACE&ILE0ERMISSIONS
&ORMATTER)MAGE)/)NTERNATIONALIZATION*AVA.ATIVE)NTERFACE.ETWORK)NTERFACEAND
)NTERFACE!DDRESS.EW)/INCLUDING.)/0IPED/UTPUT3TREAMAND0IPED)NPUT3TREAM0REFERENCES
3CANNER3ECURITY3MART#ARD3PLASH3CREEN3TREAM4OKENIZER3TRING4OKENIZER3WING7ORKER3YSTEM
4RAY4IMERAND4IMER4ASK4OOLSANDTHE#OMPILER!0)4RANSLUCENTAND3HAPED7INDOWSAND8-,
$IGITAL3IGNATURE
!PPENDIX$!PPLICATIONS'ALLERYPRESENTSAGALLERYOFSIGNIFICANTAPPLICATIONSTHATDEMONSTRATEVARIOUS
ASPECTSOF*AVAANDGIVESYOUANOPPORTUNITYTOHAVEMOREFUNWITHTHISTECHNOLOGY
5NFORTUNATELYTHEREARELIMITSTOHOWMUCHKNOWLEDGECANBECRAMMEDINTOAPRINTBOOK&ORTHIS
REASON!PPENDIXES!"#AND$ARENOTINCLUDEDINTHISBOOKSPAGESADDINGTHESEAPPENDIXESWOULD
HAVEEXCEEDEDTHE0RINT/N$EMANDhttp://en.wikipedia.org/wiki/Print_on_demandLIMITOF
PAGESCOVERTOCOVER)NSTEADTHESEAPPENDIXESAREFREELYDISTRIBUTEDAS0$&FILES!PPENDIXES!AND"
AREBUNDLEDWITHTHEBOOKSASSOCIATEDCODEFILEATTHE!PRESSWEBSITE
http://www.apress.com/9781430239093!PPENDIXES#AND$AREBUNDLEDWITHTHEIRRESPECTIVECODE
FILESONMY4UTOR4UTORWEBSITEhttp://tutortutor.ca/cgi-bin/makepage.cgi?/books/bj7
!PPENDIXES#AND$AREhLIVINGDOCUMENTSvINTHAT)LLOCCASIONALLYADDNEWMATERIALTOTHEM7HEN)
FIRSTENCOUNTERED*AVA)FELLINLOVEWITH
THISTECHNOLOGYANDDREAMEDABOUTWRITINGABOOKTHATEXPLORED
THEENTIRELANGUAGEANDALLSTANDARDEDITION!0)S0ERHAPS)WOULDBETHEFIRSTPERSONTODOSO
4HEREAREVARIOUSOBSTACLESTOACHIEVINGTHISGOAL&ORONETHINGITSNOTEASYTOORGANIZEAVASTAMOUNT
OFCONTENTAND*AVAKEEPSGETTINGBIGGERWITHEACHNEWRELEASESOTHERESALWAYSMORETOWRITEABOUT