App WidgetProvider class

AppWidgetProvider class,

309-311 ARCHOS 5 Internet tablet, 402 assertTrueO method, 377 assets compared to project resources, 74 definition of, 73 /assets folder, 12 asynchronous tasks, running with AsyncTask class,

265-266 with threads and handlers, 266 AsyncTask class, 265-266, 282-285, 288, 297-298 audio, 353

authors' contact information, 425 authors' website, 424-425 Auto-complete feature, 416 automated testing, 373

adding more tests, 379-380 creating test cases, 375-377 creating test projects,

374-375 explained, 374 logging application information, 374 running automated tests, 378-379

availability of servers, checking, 261 avatars adding to settings screen layout, 219-220 bitmaps generating, 229 saving, 228-229

scaling, 229-230 transformations, 230 designing, 217-219 gallery, 227-228 ImageButton controls handling events, 222-223 setting images of, 221-222 launching activities and handling results, 224-225 photo-taking with camera,

225-227 uploading, 288 AVDs (Android Virtual Devices) advantages, 24 creating, 17-18, 241

background operations in App Widgets, 314-315 creating services,

316-317 starting/stopping services, 317-318 handling, 268-269, 273 backward compatibility, designing for, 342 battery life, 363

BATTERY_STATS permission, 363 Been There, Done That! application activities, 96-97, 105-106 activity dialogs, 181 AlertDialog class, 182 CharacterPickerDialog class, 182

custom password dialog,

188-193 DatePickerDialog class,

182-187 defining, 183 Dialog class, 182 dismissing, 184 initializing, 183 launching, 183 life cycle of, 182-183 ProgressDialog class, 182 removing from use, 184 TimePickerDialog class, 182 App Widget adding to Home screen,

312-313 Android manifest file updates, 307 AppWidgetProvider class implementation, 309-311 background operations,

314-318 controls, 318 event handling, 313-314 explained, 305-306 layout, 308 methods, 309 multiple instances of, 319 properties, 306-307 RemoteViews object, 311 application preferences creating, 106-107 retrieving shared preferences, 107-108 saving shared preferences, 107

0 0

Post a comment