Fundamentals<br />There are some key components that developers need to understand before they can begin to write Apps.<br />Fundamental things of android are similar to JSP and Servlets in J2EE<br />Android has<br /><ul><li>Views
AndroidManifest.xml</li></li></ul><li>Views<br />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<br />Example of views are:<br />Text<br />Button Controls<br />List Controls<br />Grid Controls<br />Date and Time Controls .<br />
Contents Providers<br />Data sharing among mobile applications on a device is common.<br />Android defines a standard mechanism for applications to share data (such as a list of contacts) without exposing the underlying storage, structure, and implementation<br />Through content providers, you can expose your data and have your applications use data from other applications.<br />
Service<br />Services in Android resemble services you see in Windows or other platforms<br />They’re background processes that can potentially run for a long time<br />Android defines two types of services<br />Local Services <br />Remote Services<br />Local services are components that are only accessible by the application that is hosting the service.<br />
Service Cont…<br />Remote services are services that are meant to be accessed remotely by other applications running on the device.<br />Example is mobile phone camera-battery<br />Any Class by inheriting a Service class becomes a Service <br />When a class extends Service class it must override onCreate() , onStart() & onDestroy() methods<br />When a Service is Called it first calls the onCreate() method and then the onStart() method and finally onDestroy()<br />All the Services must be registered in manifest.xml file<br />
Service Cont..<br />This can be done by using the syntax<br /><service android:name="StockQuoteService"><br /> </service><br />You can call the Local Service by using the <br />startService() method.<br />You can call the Remote Service by using the <br />bindService() method.<br />
A particular slide catching your eye?
Clipping is a handy way to collect important slides you want to go back to later.