Your SlideShare is downloading. ×
Fundamentals & Services
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Fundamentals & Services

502
views

Published on

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

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
502
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Fundamentals & Services
  • 2. Fundamentals
    There are some key components that developers need to understand before they can begin to write Apps.
    Fundamental things of android are similar to JSP and Servlets in J2EE
    Android has
  • 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 .
  • 8. 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.
  • 9. 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.
  • 10. 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
  • 11. 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.

×