DDMS Dalvik Debug Monitor Service

configuration management, 333-335

debugging device debugging, 414 USB debugging, 413-414 EditText controls, 168 power settings, 363 ringtones, 356 Spinner controls, 173 TabHost control, 155 wallpaper, 356-357 conformance testing, 370 ConnectivityManager class, 261 contacting authors, 425 Contacts application, 37 Contacts content provider, 360 contains() method, 177 containsKey() method, 210 content providers Browser, 360 CallLog, 360 Contacts, 360 explained, 360-361 live folders, 361 MediaStore, 360 UserDictionary, 360 context menus, 138 Context object getConfiguration()

method, 329 getSystemService() method,

261, 279 launching activities with, 48 retrieving context for current process, 46

controls. See specific controls coordinates, translating, 247 copy protection, 406 Create New Project in Workspace button (New Android Project dialog), 10 Create Project from Existing Sample button (New Android Project dialog), 13 Create Project from Existing Source button (New Android Project dialog), 13 create() method, 193 createChooser() method, 226 createFromResource()

method, 173 createScaledBitmap()

method, 229 Cube Live Wallpaper, 357 currency

Currency class, 330 internationalization, 330 Currency class, 330 custom dividers, adding to

ListView, 136 custom log filters, 420 custom password dialog adding to QuizSettingsActivity class, 190-193 designing, 188-189 implementing layout, 190 launching, 193

custom selectors, adding to

ListView, 137 custom views, 350

d() method (Log class), 54 Dalvik Debug Monitor Service.

See DDMS databases handset databases, 372 SQLite databases, 359 DateFormat class, 330 DatePickerDialog, 182-184

adding to QuizSettingsActivity class, 184-185 initializing, 185-186 launching, 186-187 date internationalization, 330 DDMS (Dalvik Debug Monitor Service) browsing file system with, 31 debugging Android applications with, 21-22 debugging applications with, 29-30

Emulator Control, 31-33 explained, 39 File Explorer, 31 managing tasks, 30 managing tasks with, 30 Screen Capture button, 33-34 simulating incoming calls to emulator, 31-32 simulating incoming SMS

messages to emulator, 33 taking screenshots of emulator or handset, 33-34 viewing log information, 35

debugging

Android applications with

DDMS, 21-22, 29-30 debug configuration, 108 debug information, setting for applications, 85 device debugging, 414 USB debugging, 413-414 default resources, specifying, 325 default tabs, setting, 155 default.properties file, 12 defect tracking systems, 369 defects, 369

defining Android SDK, 343 deleteFile() method, 359 descriptions, adding to applications, 85 designating launch activity, 87-88 designing applications activity requirements, 44-45, 96-97

App Widget layouts, 308 application features, 43-44 application functionality,

45-46 avatars, 217-219 backward compatibility, 342 favorite place feature,

233-234 game screens, 102, 197-200 help screens, 98-99, 144 high-level game features, 96 layouts with Layout Resource

Editor, 68-70 with XML, 69 main menu screens, 98

network applications application servers,

256-257 explained, 255-256 progress bars, 257 password dialog, 188-189 response during low-memory conditions, 55 scores screens, 100, 149 settings screens, 100-101,

161-163 splash screens, 97-98,

113-114 input forms, 55

detecting SDK

programmatically, 343 determinate progress, displaying with progress bars, 263 determining locales, 329-330 Dev Guide tab (Android documentation), 28 Dev Tools, 38, 110 developer accounts (Android Market)

benefits, 402 signing up for, 396-397

Developer Challenges, 9 Developer.com, 426 developing network applications,

257-258 device fragmentation, 371-372 devices debugging, 414 developing for Android SDKs, 341-342 choosing application's target platform, 342 defining Android SDK, 343

designing for backward compatibility, 342 detecting SDK

programmatically, 343 specifying target SDK, 342 developing for different devices configuration management, 333-335 handset features, 341 screen orientations, 335-339, 344 Dialer application, 37 Dialog class, 182 dialogs, 53-54, 181 AlertDialog, 182 CharacterPickerDialog, 182 custom password dialog adding to QuizSettingsActivity class, 190-193 designing, 188-189 implementing layout, 190 launching, 193 DatePickerDialog, 182 adding to QuizSettingsActivity class, 184-185 initializing, 185-186 launching, 186-187 DatePickerDialog class, 184 defining, 183 Dialog, 182 dismissing, 184 favorite place dialog, 235-237 initializing, 183

launching, 183 life cycle of, 182-183 methods, 53 ProgressDialog, 182 removing from use, 184 TimePickerDialog, 182 digital signatures, 387-390 dimensions, 65-66 directories

/assets, 12

explained, 358

/layout, 15

live folders, 361

/res/drawable, 13

resource directory qualifiers,

334-335 /src, 12 /values, 16 dismiss() method, 264 dismissDialog() method, 53,

183-184 dismissing dialogs, 184 progress dialog, 273 displaying scores, 267 background processing,

268-269 cancellation, 270-271 friends' scores, 298 progress indicator, 268-270 progress updates, 269-270 ScoreDownloaderTask class, 267

documentation, 27-29

code comments, 416 online versus local SDK documentation, 40 doInBackground() method, 265,

268, 273, 283-285, 297 downloading

Android SDK, 9, 411 Eclipse IDE, 410 question batches, 271-273 scores background processing,

268-269 cancellation, 270-271 progress indicator,

268-270 progress updates,

269-270 ScoreDownloaderTask class, 267 Draw 9-Patch tool, 39 drawable resources adding to Been There, Done

That! game, 104 images loading, 67

ShapeDrawable class, 67 supported image formats, 66-67 Droid #1 project creating, 10-11 creating debug and run configurations, 18-19 debugging with DDMS, 21-22 editing project resources AndroidManifest.xml file, 13-15

/res files, 15-16 string resources, 16 launching on handset, 22-23 launching with emulator,

19-21 project files, 12-13

e() method (Log class), 54 Eclipse IDE

Auto-complete feature, 416 automated testing with adding more tests,

379-380 creating test cases,

375-377 creating test projects,

374-375 explained, 374 running automated tests, 378-379 build errors, resolving, 420 classes, creating, 415 code comments, 416 code editing, 416-417 code formatting, 418 code organization, 418 developing Android applications without, 39 imports, organizing, 415-416 installing, 410 integrating with source control packages, 421 log filters, 420

manifest file resource editor AndroidManifest.xml tab, 81 Application tab, 78-79 Instrumentation tab, 80 Manifest tab, 78-79 Permissions tab, 79-80 methods, creating, 415 refactoring, 418-420 Rename tool, 417-418 tabs, rearranging, 421 edge-case testing, 370 editing

AndroidManifest.xml file AndroidManifest.xml tab, 81 Application tab, 78-79 Instrumentation tab, 80 Manifest tab, 78-79 Permissions tab, 79-80 code, 416-417 project resources

AndroidManifest.xml file, 13-15 /res files, 15-16 string resources, 16 XML files, 24 EditText controls committing EditText input, 169 configuring, 168 handling text input, 168 listening for EditText keystrokes, 169-170 elements. See tags emulator configuring location of, 241 enabling location testing on,

241-243 explained, 35 incoming calls, simulating with DDMS, 31-32 incoming SMS messages, simulating with DDMS, 33 launching Android applications with, 19-21 launching applications in, 109 limitations, 35 providing input to, 36 SD card images with, 38 skins, 38, 40

taking screenshots of, 33-34 testing network applications on, 258 testing on, 372 Emulator Control (DDMS), 31-33 enabling friend requests

AsyncTask class, 297-298 Friend Request dialog, 296 settings screen layout, 293-295 location testing on emulator,

241-243 USB debugging, 413-414

enhancing player relationships,

299-300 errors, build errors, 420

events handling animation life cycle events, 123 handling in App Widgets,

313-314 ImageButton events, 222-223 ListView events custom dividers, 136 custom selectors, 137 listening for, 135-136

execute() method, 267, 298 Export Android Application command, 389 Extract Local Variable tool, 419 Extract Method tool, 419

Facebook Platform for

Mobile, 301 Facebook support, 300-301 fade_in.xml animation, 120 fade_in2.xml animation, 120 favorite place feature accessing LBS (location-

based services), 244-245 designing, 233-234 dialog, 235-237 enabling location testing on emulator, 241-243 geocoding services, 246-247 guidelines for LBS (location-based services), 240-241 implementing framework for,

237-240 layout updates, 234-235

Facebook For Cash Audio Series

Facebook For Cash Audio Series

Amazing Information You Need To Make Huge Amounts Of Money From Facebook. Read On For Complete Details On How To Use Facebook For Cash To Find Out The Easy Steps To Take For Turning Facebook Into Your Very Own Money Machine. Would You Like To Make More Money Using Only Your Home Computer? Do You Want To Find The Easiest Way Possible To Achieve Financial Security?

Get My Free Ebook


Post a comment