Views The concept of a view in J2EE and Swing carries over to Android. Views are UI elements that form the basic building blocks of a user interface Example of views are: Text Button Controls List Controls Grid Controls Date and Time Controls .
Contents Providers Data sharing among mobile applications on a device is common. Android defines a standard mechanism for applications to share data (such as a list of contacts) without exposing the underlying storage, structure, and implementation Through content providers, you can expose your data and have your applications use data from other applications.
Service Services in Android resemble services you see in Windows or other platforms They’re background processes that can potentially run for a long time Android defines two types of services Local Services Remote Services Local services are components that are only accessible by the application that is hosting the service.
Service Cont… Remote services are services that are meant to be accessed remotely by other applications running on the device. Example is mobile phone camera-battery Any Class by inheriting a Service class becomes a Service When a class extends Service class it must override onCreate() , onStart() & onDestroy() methods When a Service is Called it first calls the onCreate() method and then the onStart() method and finally onDestroy() All the Services must be registered in manifest.xml file
Service Cont.. This can be done by using the syntax <service android:name="StockQuoteService"> </service> You can call the Local Service by using the startService() method. You can call the Remote Service by using the bindService() method.