Common Tasks and How To Do Them in Android
Portions of this page are reproduced from work created and shared by Google and used according to terms described in the Creative Commons 2.5 Attribution License.
- Creating an Android Application using the Eclipse plugin
- Creating an Android Application without the Eclipse plugin
- Implementing Activity callbacks (Android calls your activity at various key moments in its life cycle. You must know how to handle each of these to draw your screen, initialize class members, and acquire data.)
- Opening a new screen
- Listening for button clicks
- Configuring general window properties
- Storing and retrieving state
- Storing and retrieving preferences
- Storing and retrieving larger or more complex persistent data (files and data)
- Playing audio, video, still, or other media files
- Listening for and broadcasting global messages and setting alarms
- Displaying alerts
- Displaying a progress bar
- Adding your application to the Favorites list
- Adding items to the screen menu
- Display a web page
- Binding to data
- Capture images from the phone camera
- Handling expensive operations in the UI thread
- Selecting, highlighting, or styling portions of text
- List of files for an Android application
- The ApiDemos sample application includes many, many examples of common tasks and UI features. See the code inside samples/ApiDemos and the other sample applications under the samples/ folder in the SDK.
Bookmarks