Android For Beginners

Beginner 0(0 Ratings) 0 Students enrolled English
Created by skill expert
Last updated Thu, 16-Jun-2022
+ View more
Course overview

Android Intent Details

Intents can be simply defined as synchronous messages by which one Android Component can request functionality of other component.
An intent can even open a web-browser for you. Any activity can send an intent by which new activity can be started.

Sample code -
Intent intent = new Intent(MainActivity.this, SecondActivity.class);

Suppose on your Facebook Account you are on the news feed screen (which is one Activity), and want to view a pic posted by our friend. When you click on the photo, the intent associated with the click event of photo is fired which communicates the message, and the Photo page opens (which is a new Activity).

Think of intent as a message to communicate an action. It is a description of what you want done, example VIEW VIDEO, PLAY GAME etc.

<iframe id="aswift_4" name="aswift_4" sandbox="allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation" width="769" height="0" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" src="Π=t.aa~a.1836167269~i.40~rp.1&w=769&fwrn=4&fwrnh=100&lmt=1655375505#_ads=1&rafmt=1&armr=3&sem=mc&pwprc=8884086629&psa=1&ad_type=text_image&format=769x280&url=,769x280,0x0,346x280&nras=3&correlator=5601226382693&frm=20&pv=1&ga_vid=384070883.1654664512&ga_sid=1655375505&ga_hid=1020051375&ga_fc=1&u_tz=330&u_his=17&u_h=1024&u_w=1280&u_ah=1024&u_aw=1280&u_cd=24&u_sd=1&dmc=4&adx=44&ady=2177&biw=1263&bih=896&scr_x=0&scr_y=0&eid=44759876,44759927,44759837,31067934,44763827,31067769,31068031,31068039,42531607&oid=2&pvsid=2313396311178515&tmod=1579163831&uas=0&nvt=1&ref=,0,-1280,0,1280,0,1280,1024,1280,896&vis=1&rsz=||s|&abl=NS&fu=128&bc=31&ifi=5&uci=a!5&btvi=3&fsb=1&xpc=mSktmHHnaJ&p=" data-google-container-id="a!5" data-google-query-id="CJy0h6jisfgCFd3ScwEd00sKQw" data-load-complete="true" style="margin: 0px; padding: 0px; left: 0px; position: absolute; top: 0px; border-width: 0px; border-style: initial; width: 769px; height: 0px;"></iframe>

They are commands which when called would act as communicators between the three core components of Android, i.e. Activities, Services and Broadcast Receivers.

While you are interacting with one activity, you might want to switch to another one; this is done by defining a proper Intent for the action. Here one Activity uses Intent to request the launch of another Activity. Thus, it is evident that using intents, one Android component can request action from the other components of Android.

Intent Types

Delving further, Intents can be Explicit or Implicit.

----Explicit Intent

An Explicit Intent is exactly what it means literally an "explicit intention" to perform an action. Simply put, in this case, we define explicitly the Android component (Activity, Service or Broadcast Receiver) that needs calling.

----Implicit Intent

Here we do not specifically define the component that needs to be called. However, the Intent contains enough information to direct the system to fetch the correct one.

Curriculum for this course
21 Lessons 06:19:34 Hours
21 Lessons 06:19:34 Hours
  • Android For Beginners
    Preview 00:02:15
  • Overview, Android Stack
  • Android Evolution, Latest Version of Android
  • Acitvity, Intent, Services, Content Provider
  • Activity Lifecycle
  • Intents, Intent Types
  • Services, Forms of services in Android
  • Content Providers, Operations in Content Providers
  • Broadcast Reciver
  • First Android App
  • Introduction to DDMS-Android Debbuging Tool
  • Android Eclipse Tutorial
  • Android Tutorial On Emulator
  • Structure of a Manifest File-Android Tutorial
  • Introduction To json-Android Tutorial On Json
  • Async Task-Android Development
  • Introduction to Android Animations-Tutorial&Example
  • FREE Class on Android Development
  • Android Basics-Android App Development Course
  • Radio Buttons, Spinners, Covers Layouts, List Views, Checkboxes
  • Learning & Understanding Async Task in Android Development
+ View more
Other related courses
34:30:27 Hours
Updated Wed, 08-Jun-2022
0 0 Free
27:10:39 Hours
0 0 Free
20:48:51 Hours
Updated Wed, 08-Jun-2022
0 0 Free
07:24:45 Hours
0 0 Free
39:26:26 Hours
0 0 Free
About instructor

skill expert

0 Reviews | 17 Students | 467 Courses
Student feedback
0 Reviews
  • (0)
  • (0)
  • (0)
  • (0)
  • (0)