文件名称:Google Android SDK开发文档
文件大小:1.58MB
文件格式:RAR
更新时间:2013-03-08 18:26:07
Android Google
IIntroducingAndroid 19 1QuickStart 20 1.1InstallingtheTools .....................20 1.2CreatingYourFirstProgram ................24 1.3RunningontheEmulator .................24 1.4RunningonaRealPhone .................29 1.5Fast-Forward>> .......................29 2KeyConcepts 30 2.1TheBigPicture .......................30 2.2ItsAlive ...........................35 2.3BuildingBlocks .......................39 2.4UsingResources .......................40 2.5SafeandSecure .......................41 2.6Fast-Forward>> .......................42 IIAndroidBasics 43 3DesigningtheUserInterface 44 3.1IntroducingtheSudokuExample .............44 3.2DesigningbyDeclaration ..................45 3.3CreatingtheOpeningScreen ...............46 3.4UsingAlternateResources .................54 3.5ImplementinganAboutBox ................58 3.6ApplyingaTheme ......................62 3.7AddingaMenu .......................63 3.8AddingSettings .......................66 3.9StartingaNewGame ....................68 3.10DebuggingwithLogMessages ...............70 3.11DebuggingwiththeDebugger ...............71 3.12ExitingtheGame ......................71 3.13Fast-Forward>> .......................72 4Exploring2DGraphics 73 4.1LearningtheBasics .....................73 4.2AddingGraphicstoSudoku ................78 4.3HandlingInput .......................87 4.4TheRestoftheStory ....................93 4.5MakingMoreImprovements ................102 4.6Fast-Forward>> .......................103 5Multimedia 104 5.1PlayingAudio ........................104 5.2PlayingVideo .........................110 5.3AddingSoundstoSudoku .................115 5.4Fast-Forward>> .......................118 6StoringLocalData 119 6.1AddingOptionstoSudoku .................119 6.2ContinuinganOldGame ..................121 6.3RememberingtheCurrentPosition ............123 6.4AccessingtheInternalFileSystem ............125 6.5AccessingSDCards .....................126 6.6Fast-Forward>> .......................127 IIIBeyondtheBasics 128 7TheConnectedWorld 129 7.1BrowsingbyIntent .....................130 7.2WebwithaView .......................134 7.3FromJavaScripttoJavaandBack ............139 7.4UsingWebServices .....................146 7.5Fast-Forward>> .......................156 8LocatingandSensing 158 8.1Location,Location,Location ................158 8.2SetSensorstoMaximum ..................164 8.3Birds-EyeVie .......................168 8.4Fast-Forward>> .......................173 9PuttingSQLtoWork 175 9.1IntroducingSQLite .....................175 9.2SQL101 ...........................176 9.3Hello,Database .......................178 9.4DataBinding .........................186 9.5UsingaContentProvider ..................189 9.6ImplementingaContentProvider .............192 9.7Fast-Forward>> .......................193 103DGraphicsinOpenGL 195 10.1Understanding3DGraphics ................195 10.2IntroducingOpenGL ....................196 10.3BuildinganOpenGLProgram ...............197 10.4ManagingThreads .....................199 10.5BuildingaModel ......................205 10.6Lights,Camera,.........................208 10.7Action! ............................210 10.8ApplyingTexture ......................213 10.9Peekaboo ...........................216 10.10Fast-Forward>> .......................217 IVAppendixes 218 AJavavs.theAndroidLanguageandAPIs 219 A.1LanguageSubset ......................219 A.2StandardLibrarySubset ..................221 A.3Third-PartyLibraries ....................222 BHello,Widget 223 B.1CreatingYourFirstWidget .................223 B.2CallingAllWidgets! .....................225 B.3StretchtoFit .........................226 B.4TheRestoftheStory ....................227 B.5RunningtheWidget .....................228 B.6KeepingUptoDate .....................228 B.7GoWild ............................231 CPublishingtotheAndroidMarket 233 DBibliography 234
【文件预览】:
Hello, Android.pdf