Tuesday 20 February 2018

Android Intents and its types

Intents in Android

Android is a software container and linux establish operating system for 
mobile devices such as tablet computers and smartphones. It is developed 
by Google and later the OHA (Open Handset Alliance).Android is a mobile 
operating system developed by Google, based on a modified version of the
 Linux kernel and other open source software and designed primarily for 
touchscreen mobile devices such as smartphones and tablets. 
Android Training in Chandigarh is provided by CBitss Technologies
 for those who want to make their career in Android Development. Now 
we discuss the Intents in Android.

Intent :

An Intent is a messaging object you can use to request an action from
another app component.An intent is an abstract description of an 
operation to be performed.An Intent provides a provision for execute
late runtime binding between the code in disparate applications. Its
most important utilize is in the launching of actions, where it can be 
concept of as the adhesive between activities.

Android training in Chandigarh

 It is fundamentally a pliant data structure holding an abstract 
description of an action to be performed.  It is used with start
 activity to initiate a purpose,broadcast Intent  direct  it with some 
other attentive Broadcastreceiver components, and 
startService(Intent) or bindService(Intent, ServiceConnection, int) 
to communicate with a background Service.

At the simplest level intent is an action that you can tell Android to invoke .It
Although intents facilitate communication between components in several
ways

There are three fundamental use cases:

  • Starting an activity
  • Starting a service
  • Delivering a broadcast

Types of Intents :

Now we discuss the types of Intent with the  
Android Training in Chandigarh . Intent  has two types and They are :
  • Explicit Intent
  • Implicit Intent


Android Training in Chandigarh

Explicit Intent

Explicit Intents have identify a element which provides the exact 

class to be run. Regularly these will not involve any other detail, 

clearly being a process for an application to launch various internal

 activities it has as the user interacts with the application.

Implicit Intent : 

Implicit Intents have not identify a element rather, they must 
involve sufficient information for the system to determine which of the
 available components is best to run for that intent.
Uses of Intents :
  • You can use intents to implore different applications from your
  application
  • You can use intents to implore internal or  external components 
from your application
  • You can use intents to elevate function so that different can 
acknowledge in a process alike to a produce-and subscribe model
  • Intents are used as report-passing  structure that works both within
 your your application,and between applications.
  • Interacts with every component in Android.
  • Announce your intention that an activity or service be begin to 
execute an action,generally with a piece of data.
  • Broadcast that an event has occurred.
  • Explicit start a particular activity or service. 
For more information about the Intents please join 
Android Training in Chandigarh which is provided by 
CBitss Technologies at sector-34A.