Android Application Development For Dummies
xvi
Thinking Beyond Your Application Boundaries ......................................151
Interacting with your application ....................................................151
Does it work?: Testing your application .........................................152
Chapter 6: Understanding Android Resources . . . . . . . . . . . . . . . . . . .155
Understanding Resources ..........................................................................155
Dimensions .........................................................................................156
Styles ...................................................................................................156
Themes ................................................................................................157
Values ..................................................................................................157
Menus ..................................................................................................157
Colors ..................................................................................................158
Working with Resources .............................................................................158
Moving strings into resources .........................................................158
Wrestling the image beast ................................................................160
Making your apps global with resources ........................................161
Chapter 7: Turning Your Application into a Home-Screen Widget. . . .163
Working with App Widgets in Android .....................................................164
Working with remote views ..............................................................165
Using AppWidgetProviders ..............................................................166
Working with Pending Intents ....................................................................167
Understanding the Android intent system .....................................167
Understanding intent data ................................................................168
Evaluating intents ..............................................................................170
Using pending intents ........................................................................170
Creating the Home-Screen Widget .............................................................172
Implementing the AppWidgetProvider ...........................................172
Communicating with the app widget ..............................................173
Building the app widget’s layout .....................................................175
Doing work inside an AppWidgetProvider .....................................176
Working with the app widget’s metadata .......................................181
Registering your new components with the manifest...................182
Placing Your Widget on the Home Screen ................................................184
Chapter 8: Publishing Your App to the Android Market . . . . . . . . . . .187
Creating a Distributable File .......................................................................187
Revisiting the manifest le................................................................188
Choosing your tools ..........................................................................189
Digitally signing your application ....................................................189
Creating the APK le ..........................................................................191
Creating an Android Market Account .......................................................194
Pricing Your Application ............................................................................200
Why to choose the paid model ........................................................200
Why to choose the free model .........................................................201
Getting Screen Shots for Your Application ..............................................201
Uploading Your Application to the Android Market ...............................203
Watching the Installs Soar ..........................................................................207