SlideShare a Scribd company logo
1 of 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

More Related Content

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

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...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.docxRAHUL126667
 
The happy path to Android development
The happy path to Android developmentThe happy path to Android development
The happy path to Android developmentAndré Jonas
 
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...Edureka!
 
React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...
React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...
React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...Edureka!
 
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...Edureka!
 
Anatomy of android application
Anatomy of android applicationAnatomy of android application
Anatomy of android applicationNikunj Dhameliya
 
Deepak_iOSDeveloper_3.5Exp
Deepak_iOSDeveloper_3.5ExpDeepak_iOSDeveloper_3.5Exp
Deepak_iOSDeveloper_3.5ExpDeepak Bachu
 
Training Session iOS UI Guidelines
Training Session iOS UI GuidelinesTraining Session iOS UI Guidelines
Training Session iOS UI GuidelinesE2LOGY
 
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...Edureka!
 
Android development Training Programme Day 2
Android development Training Programme Day 2Android development Training Programme Day 2
Android development Training Programme Day 2DHIRAJ PRAVIN
 
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!Eyal Lezmy
 
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...Edureka!
 
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 PresentationAdam Sandman
 
Nativa Android Applications development
Nativa Android Applications developmentNativa Android Applications development
Nativa Android Applications developmentAlfredo Morresi
 
Android app fundamentals
Android app fundamentalsAndroid app fundamentals
Android app fundamentalsAmr Salman
 
Building Mobile Apps on aPaaS platforms
Building Mobile Apps on aPaaS platformsBuilding Mobile Apps on aPaaS platforms
Building Mobile Apps on aPaaS platformsDr Ganesh Iyer
 

Similar to 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...
 
React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...
React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...
React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...
 
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
 
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
 

More from Edureka!

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 | EdurekaEdureka!
 
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 | EdurekaEdureka!
 
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 | EdurekaEdureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaEdureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaEdureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaEdureka!
 
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 | EdurekaEdureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaEdureka!
 
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| EdurekaEdureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaEdureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | EdurekaEdureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEdureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEdureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaEdureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaEdureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaEdureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka 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 | EdurekaEdureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaEdureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | EdurekaEdureka!
 

More from 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
 

Recently uploaded

Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
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 SavingEdi Saputra
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
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 DevelopersWSO2
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
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 FresherRemote DBA Services
 
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 DiscoveryTrustArc
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
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 Takeoffsammart93
 
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, ...apidays
 
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 AmsterdamUiPathCommunity
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 

Recently uploaded (20)

Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
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
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
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
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
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
 
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
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
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
 
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, ...
 
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
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 

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