It’s a nightmare for the ACME Company that wants a mobile application. Should it develop a J2ME application? BREW? iPhone? Windows Mobile?
Note: No, no, yes, and no. Problem solved.
The Android application lifecycle involves the following key components: • Activities are functions the application performs. • Groups of views define the application’s layout. • Intents inform the system about an application’s plans. • Services allow for background processing without user interaction. • Notifications alert the user when something interesting happens. • Content providers facilitate data transmission among different applications.
You can also use the Hierarchy Viewer to optimize your user interface contents.
Warning Because the Activity class is derived from the Context class, you can sometimes use this instead of retrieving the application Context explicitly. However, don’t be tempted to just use your Activity Context in all cases because doing so can lead to memory leaks. You can find a great article on this topic at