SlideShare ist ein Scribd-Unternehmen logo
1 von 28
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Agenda
✓ What is Android Studio?
✓ Android Stack
✓ Installation
✓ What is an Activity?
✓ Activity Life Cycle
✓ Event Listeners
✓ Intents
✓ Demo
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is Android Studio?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is Android Studio?
Android studio is an official IDE for developing android applications
➢ Free and Simple
➢ Open source
➢ Written in Java
➢ Integrated gradle build system
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Stack
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Stack
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Stack
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Android Stack
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Installation
Now, let’s see the installation of Android Studio
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Installation - JDK
Go to the link :
http://www.oracle.com/techn
etwork/java/javase/download
s/jdk8-downloads-
2133151.html
And download JDK.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Installation - Android Studio
Go to the link :
https://developer.android.c
om/studio/index.html
Download latest
Android Studio 2.3.2
1
2
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is an Activity?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What is an Activity?
 It serves as an entry point for user’s interaction.
 Each activity has a layout file where you can place your UI.
 An application can have different activities.
An Activity is the screen representation of any application in Android
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Features of an Activity
➢ All activities interact with the user in order to do something, such as
dial the phone, take a photo, send an email, or view a map.
➢ Activities are presented as floating windows or embedded
inside another activity.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Features of an Activity
➢ An application consists of multiple activities that are loosely bound to each other
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Activity Life Cycle
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Activity Life Cycle
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Activity Life Cycle
In this case the activity is
destroyed and removed
from the memory
In this state, the
activity is created.
Activity is in the
foreground and the user
can interact with it.
Activity is partially
obscured by another
activity. The other activity
that's in the foreground is
semi-transparent.
Activity is completely
hidden and not visible to
the user.
Create
Resumed (running state)
Stopped
Paused
Destroy
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Event Listeners
Let’s look at various event listeners in an activity
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Event Listeners
 An event listener is an interface in the View class that contains a single callback method.
 These are the tickets to capture the user interaction with your UI.
This is called when the user either touches the item when in touch mode.
 onClick()
This is called when the user navigates onto or away from the item, using the navigation-keys or
trackball.
 onFocusChange()
1
2
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Event Listeners
 onLongClick()
 onKey()
 onTouch()
The user either touches and holds the item when in touch mode. Say it holds the suitable "enter" key
and holds down on the trackball (for one second).
This is called when the user is focused on the item and presses or releases a hardware key on the
device.
This is called when the user performs an action qualified as a touch event, including a press, a
release, or any movement gesture on the screen (within the bounds of the item).
3
4
5
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Intents
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Intents
An intent is a messaging object you can use to request
an action from another app component.
➢ Methods are used to deliver intents to different
components:
• context.startActivity()
• context.startService()
• context.sendBroadcast()
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Intents
 An intent can carry data bundle to perform any activity
 For example if an activity has to launch an email operation, we can use an
intent with ACTION_SEND.
Types of Intent:
Implicit Intent
Explicit Intent
1
2
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Implicit Intent
Implicit intent is when the target component is not defined in the intent and the android
system has to evaluate the registered components based on the intent data.
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.edureka.co"));
startActivity(i);
Action Specification
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Explicit Intent
Explicit intent is when an application defines the target component directly in the
intent.
Intent i = new Intent(this, ActivityTwo.class);
i.putExtra("Value1", "This is ActivityTwo ");
i.putExtra("Value2", "This value two for ActivityTwo");
startActivity(i);
Target component
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Demo
Android Studio Tutorial For Beginners | Android Tutorial | Android Training | Edureka

Weitere ähnliche Inhalte

Ähnlich wie Android Studio Tutorial For Beginners | Android Tutorial | Android Training | Edureka

By the due date assigned solve the problem below, calculate the ra.docx
By the due date assigned solve the problem below, calculate the ra.docxBy the due date assigned solve the problem below, calculate the ra.docx
By the due date assigned solve the problem below, calculate the ra.docx
RAHUL126667
 
Deepak_iOSDeveloper_3.5Exp
Deepak_iOSDeveloper_3.5ExpDeepak_iOSDeveloper_3.5Exp
Deepak_iOSDeveloper_3.5Exp
Deepak Bachu
 
Android development Training Programme Day 2
Android development Training Programme Day 2Android development Training Programme Day 2
Android development Training Programme Day 2
DHIRAJ PRAVIN
 

Ähnlich wie Android Studio Tutorial For Beginners | Android Tutorial | Android Training | Edureka (20)

Android Interview Questions And Answers | Android Tutorial | Android Online T...
Android Interview Questions And Answers | Android Tutorial | Android Online T...Android Interview Questions And Answers | Android Tutorial | Android Online T...
Android Interview Questions And Answers | Android Tutorial | Android Online T...
 
By the due date assigned solve the problem below, calculate the ra.docx
By the due date assigned solve the problem below, calculate the ra.docxBy the due date assigned solve the problem below, calculate the ra.docx
By the due date assigned solve the problem below, calculate the ra.docx
 
The happy path to Android development
The happy path to Android developmentThe happy path to Android development
The happy path to Android development
 
What is Django | Django Tutorial for Beginners | Python Django Training | Edu...
What is Django | Django Tutorial for Beginners | Python Django Training | Edu...What is Django | Django Tutorial for Beginners | Python Django Training | Edu...
What is Django | Django Tutorial for Beginners | Python Django Training | Edu...
 
Angular 4 Components | Angular 4 Tutorial For Beginners | Learn Angular 4 | E...
Angular 4 Components | Angular 4 Tutorial For Beginners | Learn Angular 4 | E...Angular 4 Components | Angular 4 Tutorial For Beginners | Learn Angular 4 | E...
Angular 4 Components | Angular 4 Tutorial For Beginners | Learn Angular 4 | E...
 
Anatomy of android application
Anatomy of android applicationAnatomy of android application
Anatomy of android application
 
Android beginners David
Android beginners DavidAndroid beginners David
Android beginners David
 
Android by Swecha
Android by SwechaAndroid by Swecha
Android by Swecha
 
Deepak_iOSDeveloper_3.5Exp
Deepak_iOSDeveloper_3.5ExpDeepak_iOSDeveloper_3.5Exp
Deepak_iOSDeveloper_3.5Exp
 
Android Application Components with Implementation & Examples
Android Application Components with Implementation & ExamplesAndroid Application Components with Implementation & Examples
Android Application Components with Implementation & Examples
 
Training Session iOS UI Guidelines
Training Session iOS UI GuidelinesTraining Session iOS UI Guidelines
Training Session iOS UI Guidelines
 
React Interview Questions and Answers | React Tutorial | React Redux Online T...
React Interview Questions and Answers | React Tutorial | React Redux Online T...React Interview Questions and Answers | React Tutorial | React Redux Online T...
React Interview Questions and Answers | React Tutorial | React Redux Online T...
 
Android development Training Programme Day 2
Android development Training Programme Day 2Android development Training Programme Day 2
Android development Training Programme Day 2
 
Android Intro
Android IntroAndroid Intro
Android Intro
 
Secure your Android app- fight the leaks!
Secure your Android app- fight the leaks!Secure your Android app- fight the leaks!
Secure your Android app- fight the leaks!
 
IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Te...
IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Te...IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Te...
IoT Tutorial for Beginners | Internet of Things (IoT) | IoT Training | IoT Te...
 
DevGeekWeek 2017 Inflectra Meetup in Herzliya Presentation
DevGeekWeek 2017 Inflectra Meetup in Herzliya PresentationDevGeekWeek 2017 Inflectra Meetup in Herzliya Presentation
DevGeekWeek 2017 Inflectra Meetup in Herzliya Presentation
 
Nativa Android Applications development
Nativa Android Applications developmentNativa Android Applications development
Nativa Android Applications development
 
Android app fundamentals
Android app fundamentalsAndroid app fundamentals
Android app fundamentals
 
Building Mobile Apps on aPaaS platforms
Building Mobile Apps on aPaaS platformsBuilding Mobile Apps on aPaaS platforms
Building Mobile Apps on aPaaS platforms
 

Mehr von Edureka!

Mehr von Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
 

Kürzlich hochgeladen

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 

Android Studio Tutorial For Beginners | Android Tutorial | Android Training | Edureka

  • 1. Copyright © 2017, edureka and/or its affiliates. All rights reserved.
  • 2. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Agenda ✓ What is Android Studio? ✓ Android Stack ✓ Installation ✓ What is an Activity? ✓ Activity Life Cycle ✓ Event Listeners ✓ Intents ✓ Demo
  • 3. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What is Android Studio?
  • 4. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What is Android Studio? Android studio is an official IDE for developing android applications ➢ Free and Simple ➢ Open source ➢ Written in Java ➢ Integrated gradle build system
  • 5. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Stack
  • 6. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Stack
  • 7. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Stack
  • 8. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Android Stack
  • 9. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Installation Now, let’s see the installation of Android Studio
  • 10. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Installation - JDK Go to the link : http://www.oracle.com/techn etwork/java/javase/download s/jdk8-downloads- 2133151.html And download JDK.
  • 11. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Installation - Android Studio Go to the link : https://developer.android.c om/studio/index.html Download latest Android Studio 2.3.2 1 2
  • 12. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What is an Activity?
  • 13. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What is an Activity?  It serves as an entry point for user’s interaction.  Each activity has a layout file where you can place your UI.  An application can have different activities. An Activity is the screen representation of any application in Android
  • 14. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Features of an Activity ➢ All activities interact with the user in order to do something, such as dial the phone, take a photo, send an email, or view a map. ➢ Activities are presented as floating windows or embedded inside another activity.
  • 15. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Features of an Activity ➢ An application consists of multiple activities that are loosely bound to each other
  • 16. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Activity Life Cycle
  • 17. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Activity Life Cycle
  • 18. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Activity Life Cycle In this case the activity is destroyed and removed from the memory In this state, the activity is created. Activity is in the foreground and the user can interact with it. Activity is partially obscured by another activity. The other activity that's in the foreground is semi-transparent. Activity is completely hidden and not visible to the user. Create Resumed (running state) Stopped Paused Destroy
  • 19. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Event Listeners Let’s look at various event listeners in an activity
  • 20. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Event Listeners  An event listener is an interface in the View class that contains a single callback method.  These are the tickets to capture the user interaction with your UI. This is called when the user either touches the item when in touch mode.  onClick() This is called when the user navigates onto or away from the item, using the navigation-keys or trackball.  onFocusChange() 1 2
  • 21. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Event Listeners  onLongClick()  onKey()  onTouch() The user either touches and holds the item when in touch mode. Say it holds the suitable "enter" key and holds down on the trackball (for one second). This is called when the user is focused on the item and presses or releases a hardware key on the device. This is called when the user performs an action qualified as a touch event, including a press, a release, or any movement gesture on the screen (within the bounds of the item). 3 4 5
  • 22. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Intents
  • 23. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Intents An intent is a messaging object you can use to request an action from another app component. ➢ Methods are used to deliver intents to different components: • context.startActivity() • context.startService() • context.sendBroadcast()
  • 24. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Intents  An intent can carry data bundle to perform any activity  For example if an activity has to launch an email operation, we can use an intent with ACTION_SEND. Types of Intent: Implicit Intent Explicit Intent 1 2
  • 25. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Implicit Intent Implicit intent is when the target component is not defined in the intent and the android system has to evaluate the registered components based on the intent data. Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.edureka.co")); startActivity(i); Action Specification
  • 26. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Explicit Intent Explicit intent is when an application defines the target component directly in the intent. Intent i = new Intent(this, ActivityTwo.class); i.putExtra("Value1", "This is ActivityTwo "); i.putExtra("Value2", "This value two for ActivityTwo"); startActivity(i); Target component
  • 27. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Demo