Fundamentals & Services

672 views

Published on

hi, here you find the basic concepts of android and fundamentals.....

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
672
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Fundamentals & Services

  1. 1. Fundamentals & Services<br />
  2. 2. 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
  3. 3. Activities
  4. 4. Intents
  5. 5. Content Providers
  6. 6. Services
  7. 7. 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 />
  8. 8. 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 />
  9. 9. 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 />
  10. 10. 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 />
  11. 11. Service Cont..<br />This can be done by using the syntax<br />&lt;service android:name=&quot;StockQuoteService&quot;&gt;<br /> &lt;/service&gt;<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 />

×