Android Intents: Everything You Need to Know (in 2021)
  • -
Android Intents

Android Intents: Everything You Need to Know (in 2021)

Tags : 

The Intent is the second most important building block of the Android System. It has many types of working in Android Operating System such as:

  • Move from one screen to another
  • Passing data from one screen to other
  • Sharing data from one application to another applications such as contacts
  • Get data from another application

In Android two types of intent are available here:-

 Explicit Intent:

In such a case, intent provides the external class to be invoked. In this type of intent, the target activity of the screen is known such as:

Intent intent = new Intent(First.this,Second.class);

startActivity(intent);

Here in the above code, the second screen address is known to us. This type of intent is known as Explicit Intent. Certification-oriented Android training in Chandigarh helps aspirants develop dream Android App on their own.  

Implicit Intent: 

Implicit Intent doesn’t specify the component. In such a case, intent provides information of available components provided by the system that is to be invoked. In other words, we do not know the exact name of the target activity, such as opening call activity, taking the picture from the camera, etc. 

Intent intent=new Intent(Intent.ACTION_VIEW);

intent.setData(Uri.parse(“http://www.cbitss.com”));

startActivity(intent);

Here above we specify intent to open the Cbitss website. In this case, we do not know which browser client will show the desired URL. This totally depends on user choice.

This type of intent has many types of other uses including:

  • Sending Mail
  • Sending SMS and Call
  • Sharing the data with other application
  • Getting the data from another application using a content provider

Thus with all discussion, we conclude that intents are essential building blocks of the Android operating system.


Contact Us

    PHP Training in Chandigarh

    PHP Training in Chandigarh
    Rated PHP training in Chandigarh 5/5 based on 11477 reviews

    Chandigarh’s First Youtube Channel-Video Management Laboratory Setup

    Adwords video Certification

    SEO courses in chandigarh

    Adwords Search Certificate

    best seo training institute in Chandigarh

    Adwords Shopping Certification

    SEO course in chandigarh

    Adwords Display Certification

    SEO course in chandigarh

    Google Analytics Certification

    Best SEO training in chandigarh

    Bing Ads Certification

    digital marketing course in chandigarh

    Industrial Training

    Nothing is more Expensive than a missed Opportunity.

    Let us know

    your Customized Requirement,
    our Course Advisors are there to Serve You.!!

      no thanks

      error: Content is protected !!