Android Training in Chandigarh (9) - PowerPoint PPT Presentation

About This Presentation
Title:

Android Training in Chandigarh (9)

Description:

Android Training in Chandigarh provided by CBitss Technologies . For more information contact us 9914641983 – PowerPoint PPT presentation

Number of Views:12

less

Transcript and Presenter's Notes

Title: Android Training in Chandigarh (9)


1
Android Training in Chandigarh
  • CBitss Technologies

2
What is Intents?
  • Android application components can connect to
    other Android applications. This connection is
    based on a task description represented by an
    Intent object.
  • Intents are asynchronous messages which allow
    application components to request functionality
    from other Android components. Intents allow you
    to interact with components from the same
    applications as well as with components
    contributed by other applications. For example,
    an activity can start an external activity for
    taking a picture.

3
(No Transcript)
4
Intent types
  • Explicit intents specify which application will
    satisfy the intent, by supplying either the
    target app's package name or a fully-qualified
    component class name. You'll typically use an
    explicit intent to start a component in your own
    app, because you know the class name of the
    activity or service you want to start.
  • Implicit intents do not name a specific
    component, but instead declare a general action
    to perform, which allows a component from another
    app to handle it. For example, if you want to
    show the user a location on a map, you can use an
    implicit intent to request that another capable
    app show a specified location on a map.

5
Intent Structure
  • The primary pieces of information in an intent
    are
  • action -- The general action to be performed,
    such as ACTION_VIEW, ACTION_EDIT, ACTION_MAIN,
    etc.
  • data -- The data to operate on, such as a person
    record in the contacts database, expressed as a
    Uri.
  • Some examples of action/data pairs are
  • ACTION_VIEW content//contacts/people/1 --
    Display information about the person whose
    identifier is "1".
  • ACTION_DIAL content//contacts/people/1 --
    Display the phone dialer with the person filled
    in.

6
(No Transcript)
7
CBitss Technologies Contact Us 9988741983,
9914641983 Website - http//cbitss.in/android-tr
aining-in-chandigarh/
CBitss Technologies SCO-23, 24,25, Level 3,Near
Passport office, Sector 34 A, Chandigarh
8
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com