Basic Concept of Android Application Components

July 7, 2009 at 2:30 am | Posted in android | Leave a comment

Activity
An application may or may not have a User Interface. If it has a user interface, it will have one or more Activity.

Service
If an application is to have a long life cycle it should be put into a Service. For example a background data synchronization utility running continuously should be implemented as a Service.

BroadcastReceiver
Like Services, BroadcastReceivers do not have a User Interface. Of even more importance, the code running in the onReceive method of a BroadcastReceiver should make no assumptions about persistence or long-running operations. If the BroadcastReceiver requires more than a trivial amount of code execution, it is recommended that the code initiate a request to a Service to complete the requested functionality.

Content Provider
If an application manages data and needs to expose that data to other applications running in the Android environment, a ContentProvider should be implemented.

Reference:
Unlocking Android – A Developer’s Guide

Not useful Google API for Android application

July 5, 2009 at 12:47 pm | Posted in android | Leave a comment
Tags:

Google Gears
Gears is an open source project that enables more powerful web applications, by adding new features to web browsers.

Google Coupon Feeds
Google coupon feeds enable businesses to provide coupon listings that will be included in Google search results.

Blog at WordPress.com.
Entries and comments feeds.