SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Presentation by
Mrs.P.V.Kavitha
Assistant Professor (Sr.Gr)/ IT
SRI RAMAKRISHNA ENGINEERING COLLEGE
[Educational Service : SNR Sons Charitable Trust]
[Autonomous Institution, Accredited by NAAC with ‘A’ Grade]
[Approved by AICTE and Permanently Affiliated to Anna University, Chennai]
[ISO 9001:2015 Certified and all Eligible Programmes Accredited by NBA]
VATTAMALAIPALAYAM, N.G.G.O. COLONY POST, COIMBATORE – 641 022.
16IT2E43 – ANDROID APPLICATION DEVELOPMENT
OPEN ELECTIVE
Department of Information Technology
Syllabus
 Introduction to Mobile Application Development
 Mobility Landscape
 Mobile Platforms
 Mobile App development
 Overview of Android platform
 Setting up the Mobile App Development along with Emulator
 A case study on Mobile App Development
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 2
MODULE 1 : GETTING STARTED WITH MOBILITY
Agenda
 Android Project App Structure
 Building My First App in Emulator
 Building My First App in Mobile Device
 Hands-on – Building My First App
 UI Resources – Layouts
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 3
App Project Structure
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 4
Exploring the folders and files in the Android
App
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 5
Java Folder
◦ This folder contains the java source code (.java) files created during the
application development
◦ MainActivity.java will be created automatically
Exploring the folders and files in the Android
App
res(Resources) Folder
◦ It contains all non-code resources, such as bitmap images, UI
strings, XML layouts
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 6
Exploring the folders and files in the Android
App
Drawable (res/drawable) Folder
It contains the different types of images as per the requirement of
application
Layout folder
It contains all XML layout files which we used to define the user
interface of our application
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 7
Exploring the folders and files in the Android
App
Mipmap Folder (res/mipmap)
This folder contains app / launcher icons that are used to show on
the home screen
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 8
Exploring the folders and files in the Android
App
Values Folder (res/values)
This folder contains various XML files, such as strings, colors, style
definitions and a static array of strings or integers
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 9
Exploring the folders and files in the Android
App
Manifests Folder
This folder contains a manifest file
(AndroidManifest.xml) for our android
application.
This manifest file contains information
about the application such as android
version, access permissions, etc. of the
application and its components.
The manifest file will act as an
intermediate between android OS and
our application
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 10
Exploring the folders and files in the Android
App
Gradle Scripts
In android, Gradle means automated
build system and by using this we can
define a build configuration that
applies to all modules in our
application
In Gradle build.gradle (Project),
and build.gradle (Module) files are
useful to build configurations that
apply to all our app modules or
specific to one app module
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 11
Exploring the folders and files in the Android
App
Android Layout File
(activity_main.xml)
The UI of our application will be
designed in this file and it will
contain Design and Text modes.
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 12
Exploring the folders and files in the Android
App
Android Main Activity File
(MainActivity.java)
The main activity file in the android
application is MainActivity.java and it exists
in the java folder
The MainActivity.java file contains the java
code to handle all the activities related to our
app.
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 13
My First Android App in Emulator
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 14
My First Android App in Emulator
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 15
My First Android App in Emulator
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 16
My First Android App in Emulator
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 17
My First Android App in Emulator
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 18
My First Android App in Emulator
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 19
My First Android App in Emulator
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 20
My First Android App in Emulator
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 21
My First Android App in Emulator
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 22
My First Android App in Emulator
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 23
My First Android App in Emulator
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 24
My First Android App in Mobile device
◦ Connect your Mobile device with Laptop using USB cable
◦ Perform the following steps to enable USB debugging in the Developer options window:
◦ Open the Settings app.
◦ If your device uses Android v8.0 or higher, select System. Otherwise, proceed to the next
step.
◦ Scroll to the bottom and select About phone.
◦ Scroll to the bottom and tap Build number seven times.
◦ Return to the previous screen, scroll to the bottom, and tap Developer options.
◦ In the Developer options window, scroll down to find and enable USB debugging.
◦ Run the app on your device as follows:
◦ In Android Studio, select your app from the run/debug configurations drop-down menu in
the toolbar.
◦ In the toolbar, select the device that you want to run your app on from the target device drop-
down menu.
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 25
My First Android App in Mobile device
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 26
UI Layouts
Commonly used Attributes of UI Layout:
android :id
This is the ID which uniquely identifies the layout
android : layout_width = match_parent
Adjusts the width of the layout to the mobile screen
android: layout_height = match_parent
Adjusts the height of the layout to the mobile screen
android:gravity
This specifies how an object should position its content, on both the X and Y axes.
Possible values are top, bottom, left, right, center, center_vertical, center_horizontal etc.
android:orientation
This specifies the direction of arrangement and you will use "horizontal" for a row,
"vertical" for a column. The default is horizontal
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 27
UI Controls/Components/Widgets
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 28
• Input controls are the interactive components in app's user interface
• Android provides a wide variety of controls such as buttons, text fields, edit text,
check box, radio button, toggle buttons, and many more
Some of the UI controls are:
UI Controls/Components/Widgets
TextView : This control is used to display text to the user
EditText : This control is used to get the input from the user
Button : A push-button that can be pressed, or clicked, by the user to perform an action
RadioButton: The RadioButton has two states: either checked or unchecked.
CheckBox: An on/off switch that can be toggled by the user. You should use check box
when presenting users with a group of selectable options that are not mutually exclusive.
ToggleButton: An on/off button with a light indicator
RadioGroup : A RadioGroup is used to group together one or more RadioButtons
ListView: It contains the group of items and displays in a scrollable list
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 29
Event Handling model
Event Handling Model
Events are a useful way to collect data about a user's interaction with interactive
components of applications
27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 30
ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA
27-03-2023 31

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
 
Appium
AppiumAppium
Appium
 
Android app development
Android app developmentAndroid app development
Android app development
 
BDD with JBehave and Selenium
BDD with JBehave and SeleniumBDD with JBehave and Selenium
BDD with JBehave and Selenium
 
Android UI
Android UIAndroid UI
Android UI
 
Native automation tooling for mobile application testing.pptx
Native automation tooling for mobile application testing.pptxNative automation tooling for mobile application testing.pptx
Native automation tooling for mobile application testing.pptx
 
Android.ppt
Android.pptAndroid.ppt
Android.ppt
 
Appium
AppiumAppium
Appium
 
Application development framework
Application development frameworkApplication development framework
Application development framework
 
Android application development ppt
Android application development pptAndroid application development ppt
Android application development ppt
 
Google Maps in Android
Google Maps in AndroidGoogle Maps in Android
Google Maps in Android
 
Android Platform Architecture
Android Platform ArchitectureAndroid Platform Architecture
Android Platform Architecture
 
Android Technology
Android TechnologyAndroid Technology
Android Technology
 
Appium: Automation for Mobile Apps
Appium: Automation for Mobile AppsAppium: Automation for Mobile Apps
Appium: Automation for Mobile Apps
 
Basics and different xml files used in android
Basics and different xml files used in androidBasics and different xml files used in android
Basics and different xml files used in android
 
Android ppt
Android pptAndroid ppt
Android ppt
 
Introduction to Android
Introduction to Android Introduction to Android
Introduction to Android
 
Fitness App(PPT) New (1).pptx
Fitness App(PPT) New (1).pptxFitness App(PPT) New (1).pptx
Fitness App(PPT) New (1).pptx
 
Introduction To Mobile-Automation
Introduction To Mobile-AutomationIntroduction To Mobile-Automation
Introduction To Mobile-Automation
 
Mobile application development
Mobile application developmentMobile application development
Mobile application development
 

Ähnlich wie Android - Day3.pptx

Basic android development
Basic android developmentBasic android development
Basic android development
Upanya Singh
 
Basic android development
Basic android developmentBasic android development
Basic android development
Upanya Singh
 

Ähnlich wie Android - Day3.pptx (20)

Jaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based ApplicationJaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based Application
 
Jaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based ApplicationJaipur Bus Finder - An Android-based Application
Jaipur Bus Finder - An Android-based Application
 
DEVELOPING CUSTOM APPS USING DYNAMIC XML PARSING
DEVELOPING CUSTOM APPS USING DYNAMIC XML PARSINGDEVELOPING CUSTOM APPS USING DYNAMIC XML PARSING
DEVELOPING CUSTOM APPS USING DYNAMIC XML PARSING
 
Notes Unit3.pptx
Notes Unit3.pptxNotes Unit3.pptx
Notes Unit3.pptx
 
Android ui with xml
Android ui with xmlAndroid ui with xml
Android ui with xml
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Sample_report_for_MINI_PROJECT.docx (1).pdf
Sample_report_for_MINI_PROJECT.docx (1).pdfSample_report_for_MINI_PROJECT.docx (1).pdf
Sample_report_for_MINI_PROJECT.docx (1).pdf
 
Android app development
Android app developmentAndroid app development
Android app development
 
Compose camp 4.pptx
Compose camp 4.pptxCompose camp 4.pptx
Compose camp 4.pptx
 
Neha
NehaNeha
Neha
 
Android Development : (Android Studio, PHP, XML, MySQL)
Android Development : (Android Studio, PHP, XML, MySQL)Android Development : (Android Studio, PHP, XML, MySQL)
Android Development : (Android Studio, PHP, XML, MySQL)
 
Mobile Application Development
Mobile Application DevelopmentMobile Application Development
Mobile Application Development
 
B041130610
B041130610B041130610
B041130610
 
Mobile application development process
Mobile application development processMobile application development process
Mobile application development process
 
SmartVision Android App
SmartVision Android AppSmartVision Android App
SmartVision Android App
 
Introduction to Android development - Presentation
Introduction to Android development - PresentationIntroduction to Android development - Presentation
Introduction to Android development - Presentation
 
demystifying_the_architectures_of_a_mobile_app_development.pdf
demystifying_the_architectures_of_a_mobile_app_development.pdfdemystifying_the_architectures_of_a_mobile_app_development.pdf
demystifying_the_architectures_of_a_mobile_app_development.pdf
 
Basic android development
Basic android developmentBasic android development
Basic android development
 
Basic android development
Basic android developmentBasic android development
Basic android development
 
mobile application development -unit-3-
mobile application development  -unit-3-mobile application development  -unit-3-
mobile application development -unit-3-
 

Kürzlich hochgeladen

Jual Obat Aborsi Palu ( Taiwan No.1 ) 085657271886 Obat Penggugur Kandungan C...
Jual Obat Aborsi Palu ( Taiwan No.1 ) 085657271886 Obat Penggugur Kandungan C...Jual Obat Aborsi Palu ( Taiwan No.1 ) 085657271886 Obat Penggugur Kandungan C...
Jual Obat Aborsi Palu ( Taiwan No.1 ) 085657271886 Obat Penggugur Kandungan C...
ZurliaSoop
 
+971565801893>> ORIGINAL CYTOTEC ABORTION PILLS FOR SALE IN DUBAI AND ABUDHABI<<
+971565801893>> ORIGINAL CYTOTEC ABORTION PILLS FOR SALE IN DUBAI AND ABUDHABI<<+971565801893>> ORIGINAL CYTOTEC ABORTION PILLS FOR SALE IN DUBAI AND ABUDHABI<<
+971565801893>> ORIGINAL CYTOTEC ABORTION PILLS FOR SALE IN DUBAI AND ABUDHABI<<
Health
 
Call Girls in Chattarpur (delhi) call me [9953056974] escort service 24X7
Call Girls in Chattarpur (delhi) call me [9953056974] escort service 24X7Call Girls in Chattarpur (delhi) call me [9953056974] escort service 24X7
Call Girls in Chattarpur (delhi) call me [9953056974] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

Vip Call Girls Tilak Nagar ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Tilak Nagar ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Tilak Nagar ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Tilak Nagar ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
Jual Obat Aborsi Palu ( Taiwan No.1 ) 085657271886 Obat Penggugur Kandungan C...
Jual Obat Aborsi Palu ( Taiwan No.1 ) 085657271886 Obat Penggugur Kandungan C...Jual Obat Aborsi Palu ( Taiwan No.1 ) 085657271886 Obat Penggugur Kandungan C...
Jual Obat Aborsi Palu ( Taiwan No.1 ) 085657271886 Obat Penggugur Kandungan C...
 
Enjoy Night⚡Call Girls Palam Vihar Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Palam Vihar Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Palam Vihar Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Palam Vihar Gurgaon >༒8448380779 Escort Service
 
Your LinkedIn Makeover: Sociocosmos Presence Package
Your LinkedIn Makeover: Sociocosmos Presence PackageYour LinkedIn Makeover: Sociocosmos Presence Package
Your LinkedIn Makeover: Sociocosmos Presence Package
 
Production diary Film the city powerpoint
Production diary Film the city powerpointProduction diary Film the city powerpoint
Production diary Film the city powerpoint
 
The Butterfly Effect
The Butterfly EffectThe Butterfly Effect
The Butterfly Effect
 
BDSM⚡Call Girls in Sector 76 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 76 Noida Escorts >༒8448380779 Escort ServiceBDSM⚡Call Girls in Sector 76 Noida Escorts >༒8448380779 Escort Service
BDSM⚡Call Girls in Sector 76 Noida Escorts >༒8448380779 Escort Service
 
This is a Powerpoint about research into the codes and conventions of a film ...
This is a Powerpoint about research into the codes and conventions of a film ...This is a Powerpoint about research into the codes and conventions of a film ...
This is a Powerpoint about research into the codes and conventions of a film ...
 
Film show investigation powerpoint for the site
Film show investigation powerpoint for the siteFilm show investigation powerpoint for the site
Film show investigation powerpoint for the site
 
Website research Powerpoint for Bauer magazine
Website research Powerpoint for Bauer magazineWebsite research Powerpoint for Bauer magazine
Website research Powerpoint for Bauer magazine
 
Elite Class ➥8448380779▻ Call Girls In Nehru Place Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Nehru Place Delhi NCRElite Class ➥8448380779▻ Call Girls In Nehru Place Delhi NCR
Elite Class ➥8448380779▻ Call Girls In Nehru Place Delhi NCR
 
+971565801893>> ORIGINAL CYTOTEC ABORTION PILLS FOR SALE IN DUBAI AND ABUDHABI<<
+971565801893>> ORIGINAL CYTOTEC ABORTION PILLS FOR SALE IN DUBAI AND ABUDHABI<<+971565801893>> ORIGINAL CYTOTEC ABORTION PILLS FOR SALE IN DUBAI AND ABUDHABI<<
+971565801893>> ORIGINAL CYTOTEC ABORTION PILLS FOR SALE IN DUBAI AND ABUDHABI<<
 
Film show production powerpoint for site
Film show production powerpoint for siteFilm show production powerpoint for site
Film show production powerpoint for site
 
SELECTING A SOCIAL MEDIA MARKETING COMPANY
SELECTING A SOCIAL MEDIA MARKETING COMPANYSELECTING A SOCIAL MEDIA MARKETING COMPANY
SELECTING A SOCIAL MEDIA MARKETING COMPANY
 
Film show evaluation powerpoint for site
Film show evaluation powerpoint for siteFilm show evaluation powerpoint for site
Film show evaluation powerpoint for site
 
Hire↠Young Call Girls in Hari Nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esco...
Hire↠Young Call Girls in Hari Nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esco...Hire↠Young Call Girls in Hari Nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esco...
Hire↠Young Call Girls in Hari Nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esco...
 
Ignite Your Online Influence: Sociocosmos - Where Social Media Magic Happens
Ignite Your Online Influence: Sociocosmos - Where Social Media Magic HappensIgnite Your Online Influence: Sociocosmos - Where Social Media Magic Happens
Ignite Your Online Influence: Sociocosmos - Where Social Media Magic Happens
 
Improve Your Brand in Waco with a Professional Social Media Marketing Company
Improve Your Brand in Waco with a Professional Social Media Marketing CompanyImprove Your Brand in Waco with a Professional Social Media Marketing Company
Improve Your Brand in Waco with a Professional Social Media Marketing Company
 
Call Girls in Chattarpur (delhi) call me [9953056974] escort service 24X7
Call Girls in Chattarpur (delhi) call me [9953056974] escort service 24X7Call Girls in Chattarpur (delhi) call me [9953056974] escort service 24X7
Call Girls in Chattarpur (delhi) call me [9953056974] escort service 24X7
 
Stunning ➥8448380779▻ Call Girls In Paharganj Delhi NCR
Stunning ➥8448380779▻ Call Girls In Paharganj Delhi NCRStunning ➥8448380779▻ Call Girls In Paharganj Delhi NCR
Stunning ➥8448380779▻ Call Girls In Paharganj Delhi NCR
 

Android - Day3.pptx

  • 1. Presentation by Mrs.P.V.Kavitha Assistant Professor (Sr.Gr)/ IT SRI RAMAKRISHNA ENGINEERING COLLEGE [Educational Service : SNR Sons Charitable Trust] [Autonomous Institution, Accredited by NAAC with ‘A’ Grade] [Approved by AICTE and Permanently Affiliated to Anna University, Chennai] [ISO 9001:2015 Certified and all Eligible Programmes Accredited by NBA] VATTAMALAIPALAYAM, N.G.G.O. COLONY POST, COIMBATORE – 641 022. 16IT2E43 – ANDROID APPLICATION DEVELOPMENT OPEN ELECTIVE Department of Information Technology
  • 2. Syllabus  Introduction to Mobile Application Development  Mobility Landscape  Mobile Platforms  Mobile App development  Overview of Android platform  Setting up the Mobile App Development along with Emulator  A case study on Mobile App Development 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 2 MODULE 1 : GETTING STARTED WITH MOBILITY
  • 3. Agenda  Android Project App Structure  Building My First App in Emulator  Building My First App in Mobile Device  Hands-on – Building My First App  UI Resources – Layouts 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 3
  • 4. App Project Structure 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 4
  • 5. Exploring the folders and files in the Android App 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 5 Java Folder ◦ This folder contains the java source code (.java) files created during the application development ◦ MainActivity.java will be created automatically
  • 6. Exploring the folders and files in the Android App res(Resources) Folder ◦ It contains all non-code resources, such as bitmap images, UI strings, XML layouts 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 6
  • 7. Exploring the folders and files in the Android App Drawable (res/drawable) Folder It contains the different types of images as per the requirement of application Layout folder It contains all XML layout files which we used to define the user interface of our application 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 7
  • 8. Exploring the folders and files in the Android App Mipmap Folder (res/mipmap) This folder contains app / launcher icons that are used to show on the home screen 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 8
  • 9. Exploring the folders and files in the Android App Values Folder (res/values) This folder contains various XML files, such as strings, colors, style definitions and a static array of strings or integers 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 9
  • 10. Exploring the folders and files in the Android App Manifests Folder This folder contains a manifest file (AndroidManifest.xml) for our android application. This manifest file contains information about the application such as android version, access permissions, etc. of the application and its components. The manifest file will act as an intermediate between android OS and our application 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 10
  • 11. Exploring the folders and files in the Android App Gradle Scripts In android, Gradle means automated build system and by using this we can define a build configuration that applies to all modules in our application In Gradle build.gradle (Project), and build.gradle (Module) files are useful to build configurations that apply to all our app modules or specific to one app module 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 11
  • 12. Exploring the folders and files in the Android App Android Layout File (activity_main.xml) The UI of our application will be designed in this file and it will contain Design and Text modes. 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 12
  • 13. Exploring the folders and files in the Android App Android Main Activity File (MainActivity.java) The main activity file in the android application is MainActivity.java and it exists in the java folder The MainActivity.java file contains the java code to handle all the activities related to our app. 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 13
  • 14. My First Android App in Emulator 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 14
  • 15. My First Android App in Emulator 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 15
  • 16. My First Android App in Emulator 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 16
  • 17. My First Android App in Emulator 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 17
  • 18. My First Android App in Emulator 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 18
  • 19. My First Android App in Emulator 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 19
  • 20. My First Android App in Emulator 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 20
  • 21. My First Android App in Emulator 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 21
  • 22. My First Android App in Emulator 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 22
  • 23. My First Android App in Emulator 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 23
  • 24. My First Android App in Emulator 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 24
  • 25. My First Android App in Mobile device ◦ Connect your Mobile device with Laptop using USB cable ◦ Perform the following steps to enable USB debugging in the Developer options window: ◦ Open the Settings app. ◦ If your device uses Android v8.0 or higher, select System. Otherwise, proceed to the next step. ◦ Scroll to the bottom and select About phone. ◦ Scroll to the bottom and tap Build number seven times. ◦ Return to the previous screen, scroll to the bottom, and tap Developer options. ◦ In the Developer options window, scroll down to find and enable USB debugging. ◦ Run the app on your device as follows: ◦ In Android Studio, select your app from the run/debug configurations drop-down menu in the toolbar. ◦ In the toolbar, select the device that you want to run your app on from the target device drop- down menu. 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 25
  • 26. My First Android App in Mobile device 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 26
  • 27. UI Layouts Commonly used Attributes of UI Layout: android :id This is the ID which uniquely identifies the layout android : layout_width = match_parent Adjusts the width of the layout to the mobile screen android: layout_height = match_parent Adjusts the height of the layout to the mobile screen android:gravity This specifies how an object should position its content, on both the X and Y axes. Possible values are top, bottom, left, right, center, center_vertical, center_horizontal etc. android:orientation This specifies the direction of arrangement and you will use "horizontal" for a row, "vertical" for a column. The default is horizontal 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 27
  • 28. UI Controls/Components/Widgets 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 28 • Input controls are the interactive components in app's user interface • Android provides a wide variety of controls such as buttons, text fields, edit text, check box, radio button, toggle buttons, and many more Some of the UI controls are:
  • 29. UI Controls/Components/Widgets TextView : This control is used to display text to the user EditText : This control is used to get the input from the user Button : A push-button that can be pressed, or clicked, by the user to perform an action RadioButton: The RadioButton has two states: either checked or unchecked. CheckBox: An on/off switch that can be toggled by the user. You should use check box when presenting users with a group of selectable options that are not mutually exclusive. ToggleButton: An on/off button with a light indicator RadioGroup : A RadioGroup is used to group together one or more RadioButtons ListView: It contains the group of items and displays in a scrollable list 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 29
  • 30. Event Handling model Event Handling Model Events are a useful way to collect data about a user's interaction with interactive components of applications 27-03-2023 ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 30
  • 31. ANDROID APPLICATION DEVELOPMENT - P.V.KAVITHA 27-03-2023 31