SlideShare une entreprise Scribd logo
1  sur  18
Télécharger pour lire hors ligne
ANDROID APPLICATION DEVELOPMENT
Prepared by Yogesh Lakhole
ANDROID APPLICATION DEVELOPMENT
• Introduction to Android Operating System
• History of Android
• Android Versions
• System Architecture of Android.
• Android Application Programming
• Android Life Cycle
• Introduction to Development Environment
• ADT with ECLIPSE
• Android Studio
• Android Layouts
• Android Components
• Android Activity
• Android Manifest file Description
• Deployment of Application to .apk file
• Sample Native Android Application
• Sample Hybrid Android Application
INTRODUCTION
Android is a mobile operating system (OS) based on the Linux kernel and currently developed
by Google. With a user interface based on direct manipulation, Android is designed primarily
for touchscreen mobile devices such as smartphones and tablet computers, with specialized
user interfaces for televisions (Android TV), cars (Android Auto), and wrist watches (Android
Wear).
• Written in : C(core) , C++ and JAVA (UI).
• Initial Release : 23rd September 2008 Android Basic.
• Latest Release : 21st April 2015 “Android 5.1.1” Lollipop.
• Latest Preview : 17th August 2015 “Android 6.0” Marshmallow.
• Language Support : 70+ Languages.
• Package Manager : Google Play and .APK
• Hardware Platform : 32 & 64 bit ARM architecture, MIPS and MIPS64.
• Kernel : Monolithic
• License : Apache License 2.0 GNU GPL.
• Official Website : www.android.com
HISTORY OF ANDROID OS
• The first commercial version, Android 1.0, was released in September 2008. Android is under
ongoing development by Google and the Open Handset Alliance (OHA), and has seen a
number of updates to its base operating system since its initial release.
• Android versions have been developed under a confectionery-themed code name and
released in alphabetical order, beginning with Android 1.5 "Cupcake"; the earlier versions 1.0
and 1.1 were not released under specific code names:
• Cupcake (1.5)
• Donut (1.6)
• Eclair (2.0–2.1)
• Froyo (2.2–2.2.3)
• Gingerbread (2.3–2.3.7)
• Honeycomb (3.0–3.2.6)
• Ice Cream Sandwich (4.0–4.0.4)
• Jelly Bean (4.1–4.3.1)
• KitKat (4.4–4.4.4, 4.4W–4.4W.2)
• Lollipop (5.0–5.1.1)
• Marshmallow (developer preview 3)
ANDROID ARCHITECTURE
ANDROID ACTIVITY LIFECYCLE
DEVELOPMENT ENVIRONMENT
• There is many way for developing android application
• Android Development Toolkit (ADT) integrated with Eclipse IDE.
• Android Own Development IDE i.e. Android Studio.
• NDK for native code using C/C++ Language mostly use for Game
Engine.
• Basic4Android for VB Developer.
STEP TO CONFIGURE ADT FOR ECLIPSE
• First Download JDK 1.7 or above
• Set Environment Variables
• JAVA_HOME : jre path ( C:/ProgramFiles/java/jre7/bin; )
• PATH : jdk path (C:/ProgramFiles/java/jdk1.7/bin; )
• Download Eclipse from www.eclipse.org
• Download ADT Bundle from developer.android.com > tools > downloads > ADT for Eclipse
• Open Eclipse > Go to Help Menu > Click Install New Software
• Click on Add button located on upper right corner
• Click on archive and select Downloaded ADT Zip/Rar from directory.
• Give Name as Android Plugin. And click next
STEP TO CONFIGURE ANDROID STUDIO
• Android Studio is Platform for sdk by intelliJ
• Download and install JDK 1.7
• Set Environment Variables
• JAVA_HOME : jre path ( C:/ProgramFiles/java/jre7/bin;)
• PATH : jdk path (C:/ProgramFiles/java/jdk1.7/bin; )
• Download Android Studio from developer.android.com > tools and install it
ANDROID LAYOUTS
• Linear Layout
• Horizontal
• Vertical
• Relative Layout
• Frame Layout
• Table Layout
• GridLayout
ANDROID COMPONENTS & WIDGETS
• Views
• TextView
• ImageView
• WebView
• ListView
• GridView
• VideoView
• Input Fields
• EditText
• Spinner
• DatePicker
• TimePicker
• Button
• ProgressBar
ANDROID ACTIVITY
• Every UI screen of android application is known an Activity.
• When java class extends with Activity class known as Android activity.
• Execution of code should started after onCreate() method get invoked, at starting of activity class by default onCreate()
method get invoked.
• XML Layout get mapped in onCreate() method as follow.
• Example :
Public class MainActivity extends Activity{
@override
protected void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView( R.layout.main) ; //XML Layout named as main.xml get mapped with MainActivity.class with this
}
CLICK EVENT
• For click event in android we use setOnClickListener() method where overrided onClick() method is passed as
parameter.
• Example :
Button b = (Button) findViewById (R.id.button1); // get access of button from XML Layout
b.setOnClickListener(new onClickLestener(){
@override
Public void onClick(View v){
//Code whatever want to do after clicking on button
}
});
onClickListener method can also use for TextView, ImageView or with any components.
INTENTS
• Intents are used to launch another activity from one activity. Or switch between two activities.
• Syntax:
• Intent <variable>=new Intent( currentActivity.this , nextActivity.class);
• startActivity(<variable>)
• Example:
• Intent I = new Intent( MainActivity.this , SecondActivity.this );
• startActivity( I );
NATIVE VS HYBRID APPLICATION
• Hybrid Application allows developer to use their Web Application as a android application.
• Hybrid Application allows developer to use it to any platform of OS instead of developing program for
all OS. i.e. Same code use for Android , iOS or for Windows.
• For static program native application is better option but for cloud base and Dynamic Web Application
hybrid Application is better option
• Follow next code for Hybrid Application Development
HYBRID APPLICATION
• Step 1 : Get WebView from widget in main.xml
• Step 2 : set webview height and width as match_parent from properties
• Step 3 : set padding as 0 for grasp screen size of android device.
• Step 4 : then map webview in Activity class using following line of code
• WebView w=(WebView)findViewById(R.id.webView1)
• Step 5: load url into WebView using following line of code
• w.loadUrl(“http://www.google.com”); //for access website through internet
OR
• w.loadUrl(“file:///android_asset/ProjectFolder/index.html”); //located in android asset folder
• Step 6 : To unable JavaScript in webView
WebSetting ws= w.getSettingd();
ws.setJavaScriptEnabled(true);
• Step 7 : Finally need to get Internet permission to access websites from internet so add following code into
AndroidManifest.xml file after opening of <manifest> tag
• <uses-permission android:name=“android.permission.INTERNET”>
FOR ANY QUERY
-Mail on-
yogesh.lakhole@gmail.com
Or
astutesoftwares@gmail.com
THANK YOU

Contenu connexe

Tendances

Introduction to android
Introduction to androidIntroduction to android
Introduction to androidbantyder
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_authlzongren
 
Introduction to Android and Android Studio
Introduction to Android and Android StudioIntroduction to Android and Android Studio
Introduction to Android and Android StudioSuyash Srijan
 
Android Programming Basic
Android Programming BasicAndroid Programming Basic
Android Programming BasicDuy Do Phan
 
Intro to Android for the iOS Fan
Intro to Android for the iOS FanIntro to Android for the iOS Fan
Intro to Android for the iOS FanMike Wolfson
 
Android Development Workshop
Android Development WorkshopAndroid Development Workshop
Android Development WorkshopPeter Robinett
 
Android dev
Android devAndroid dev
Android devfelhii
 
Android OS & SDK - Getting Started
Android OS & SDK - Getting StartedAndroid OS & SDK - Getting Started
Android OS & SDK - Getting StartedHemant Chhapoliya
 
Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012Opersys inc.
 
Discover Android Wear
Discover Android WearDiscover Android Wear
Discover Android WearTroy Miles
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application DevelopmentKhaleel Jageer
 
Intro to Ionic for Building Hybrid Mobile Applications
Intro to Ionic for Building Hybrid Mobile ApplicationsIntro to Ionic for Building Hybrid Mobile Applications
Intro to Ionic for Building Hybrid Mobile ApplicationsSasha dos Santos
 
Android studio 2.2 Tips and Tricks
Android studio 2.2 Tips and TricksAndroid studio 2.2 Tips and Tricks
Android studio 2.2 Tips and TricksUptech
 
Android development - the basics, MFF UK, 2014
Android development - the basics, MFF UK, 2014Android development - the basics, MFF UK, 2014
Android development - the basics, MFF UK, 2014Tomáš Kypta
 
Ionic 2: Mobile apps with the Web
Ionic 2: Mobile apps with the WebIonic 2: Mobile apps with the Web
Ionic 2: Mobile apps with the WebMike Hartington
 
Introduction to android coding
Introduction to android codingIntroduction to android coding
Introduction to android codingHari Krishna
 

Tendances (20)

Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Introduction to Android and Android Studio
Introduction to Android and Android StudioIntroduction to Android and Android Studio
Introduction to Android and Android Studio
 
Android Programming Basic
Android Programming BasicAndroid Programming Basic
Android Programming Basic
 
Android Development Tutorial V3
Android Development Tutorial   V3Android Development Tutorial   V3
Android Development Tutorial V3
 
Android
AndroidAndroid
Android
 
Android Studio vs. ADT
Android Studio vs. ADTAndroid Studio vs. ADT
Android Studio vs. ADT
 
Intro to Android for the iOS Fan
Intro to Android for the iOS FanIntro to Android for the iOS Fan
Intro to Android for the iOS Fan
 
Android Development Workshop
Android Development WorkshopAndroid Development Workshop
Android Development Workshop
 
Android dev
Android devAndroid dev
Android dev
 
Android OS & SDK - Getting Started
Android OS & SDK - Getting StartedAndroid OS & SDK - Getting Started
Android OS & SDK - Getting Started
 
Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012Android App Development Intro at ESC SV 2012
Android App Development Intro at ESC SV 2012
 
Discover Android Wear
Discover Android WearDiscover Android Wear
Discover Android Wear
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
Intro to Ionic for Building Hybrid Mobile Applications
Intro to Ionic for Building Hybrid Mobile ApplicationsIntro to Ionic for Building Hybrid Mobile Applications
Intro to Ionic for Building Hybrid Mobile Applications
 
Android studio 2.2 Tips and Tricks
Android studio 2.2 Tips and TricksAndroid studio 2.2 Tips and Tricks
Android studio 2.2 Tips and Tricks
 
Android Technology
Android TechnologyAndroid Technology
Android Technology
 
Android development - the basics, MFF UK, 2014
Android development - the basics, MFF UK, 2014Android development - the basics, MFF UK, 2014
Android development - the basics, MFF UK, 2014
 
Ionic 2: Mobile apps with the Web
Ionic 2: Mobile apps with the WebIonic 2: Mobile apps with the Web
Ionic 2: Mobile apps with the Web
 
Introduction to android coding
Introduction to android codingIntroduction to android coding
Introduction to android coding
 

Similaire à Android Tutorial

Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Javaamaankhan
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions newJoe Jacob
 
Android app development by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi androidsusijanny
 
Android app development
Android app developmentAndroid app development
Android app developmentAbhishek Saini
 
Developing Hybrid Applications with IONIC
Developing Hybrid Applications with IONICDeveloping Hybrid Applications with IONIC
Developing Hybrid Applications with IONICFuat Buğra AYDIN
 
EMEA AppForum 2015 Android KitKat & Lollipop - new features for enterprise de...
EMEA AppForum 2015 Android KitKat & Lollipop - new features for enterprise de...EMEA AppForum 2015 Android KitKat & Lollipop - new features for enterprise de...
EMEA AppForum 2015 Android KitKat & Lollipop - new features for enterprise de...Pietro F. Maggi
 
Matteo Gazzurelli - Introduction to Android Development - Have a break edition
Matteo Gazzurelli - Introduction to Android Development - Have a break editionMatteo Gazzurelli - Introduction to Android Development - Have a break edition
Matteo Gazzurelli - Introduction to Android Development - Have a break editionDuckMa
 
Android Scripting
Android ScriptingAndroid Scripting
Android ScriptingJuan Gomez
 
Domo Arigato Mr. Roboto - Open Source Bridge 2009
Domo Arigato Mr. Roboto - Open Source Bridge 2009Domo Arigato Mr. Roboto - Open Source Bridge 2009
Domo Arigato Mr. Roboto - Open Source Bridge 2009sullis
 
Android Development recipes with java.pptx
Android Development recipes with java.pptxAndroid Development recipes with java.pptx
Android Development recipes with java.pptxabdulqayoomjat2470
 
Basics of Android and Android development environment
Basics of Android and Android development environment Basics of Android and Android development environment
Basics of Android and Android development environment Ajay Panchal
 

Similaire à Android Tutorial (20)

Android app devolopment
Android app devolopmentAndroid app devolopment
Android app devolopment
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Java
 
Android class provider in mumbai
Android class provider in mumbaiAndroid class provider in mumbai
Android class provider in mumbai
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
 
ANDROID PPT 1.pdf
ANDROID PPT 1.pdfANDROID PPT 1.pdf
ANDROID PPT 1.pdf
 
Android app development by abhi android
Android app development by abhi androidAndroid app development by abhi android
Android app development by abhi android
 
Android app development
Android app developmentAndroid app development
Android app development
 
Pertemuan 3 pm
Pertemuan 3   pmPertemuan 3   pm
Pertemuan 3 pm
 
Developing Hybrid Applications with IONIC
Developing Hybrid Applications with IONICDeveloping Hybrid Applications with IONIC
Developing Hybrid Applications with IONIC
 
Presentation1
Presentation1Presentation1
Presentation1
 
EMEA AppForum 2015 Android KitKat & Lollipop - new features for enterprise de...
EMEA AppForum 2015 Android KitKat & Lollipop - new features for enterprise de...EMEA AppForum 2015 Android KitKat & Lollipop - new features for enterprise de...
EMEA AppForum 2015 Android KitKat & Lollipop - new features for enterprise de...
 
Intro to android (gdays)
Intro to android (gdays)Intro to android (gdays)
Intro to android (gdays)
 
Matteo Gazzurelli - Introduction to Android Development - Have a break edition
Matteo Gazzurelli - Introduction to Android Development - Have a break editionMatteo Gazzurelli - Introduction to Android Development - Have a break edition
Matteo Gazzurelli - Introduction to Android Development - Have a break edition
 
Android overview
Android overviewAndroid overview
Android overview
 
Android Scripting
Android ScriptingAndroid Scripting
Android Scripting
 
Cross-Platform Development
Cross-Platform DevelopmentCross-Platform Development
Cross-Platform Development
 
Domo Arigato Mr. Roboto - Open Source Bridge 2009
Domo Arigato Mr. Roboto - Open Source Bridge 2009Domo Arigato Mr. Roboto - Open Source Bridge 2009
Domo Arigato Mr. Roboto - Open Source Bridge 2009
 
Android development first steps
Android development   first stepsAndroid development   first steps
Android development first steps
 
Android Development recipes with java.pptx
Android Development recipes with java.pptxAndroid Development recipes with java.pptx
Android Development recipes with java.pptx
 
Basics of Android and Android development environment
Basics of Android and Android development environment Basics of Android and Android development environment
Basics of Android and Android development environment
 

Dernier

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 

Dernier (20)

Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 

Android Tutorial

  • 2. ANDROID APPLICATION DEVELOPMENT • Introduction to Android Operating System • History of Android • Android Versions • System Architecture of Android. • Android Application Programming • Android Life Cycle • Introduction to Development Environment • ADT with ECLIPSE • Android Studio • Android Layouts • Android Components • Android Activity • Android Manifest file Description • Deployment of Application to .apk file • Sample Native Android Application • Sample Hybrid Android Application
  • 3. INTRODUCTION Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google. With a user interface based on direct manipulation, Android is designed primarily for touchscreen mobile devices such as smartphones and tablet computers, with specialized user interfaces for televisions (Android TV), cars (Android Auto), and wrist watches (Android Wear). • Written in : C(core) , C++ and JAVA (UI). • Initial Release : 23rd September 2008 Android Basic. • Latest Release : 21st April 2015 “Android 5.1.1” Lollipop. • Latest Preview : 17th August 2015 “Android 6.0” Marshmallow. • Language Support : 70+ Languages. • Package Manager : Google Play and .APK • Hardware Platform : 32 & 64 bit ARM architecture, MIPS and MIPS64. • Kernel : Monolithic • License : Apache License 2.0 GNU GPL. • Official Website : www.android.com
  • 4. HISTORY OF ANDROID OS • The first commercial version, Android 1.0, was released in September 2008. Android is under ongoing development by Google and the Open Handset Alliance (OHA), and has seen a number of updates to its base operating system since its initial release. • Android versions have been developed under a confectionery-themed code name and released in alphabetical order, beginning with Android 1.5 "Cupcake"; the earlier versions 1.0 and 1.1 were not released under specific code names: • Cupcake (1.5) • Donut (1.6) • Eclair (2.0–2.1) • Froyo (2.2–2.2.3) • Gingerbread (2.3–2.3.7) • Honeycomb (3.0–3.2.6) • Ice Cream Sandwich (4.0–4.0.4) • Jelly Bean (4.1–4.3.1) • KitKat (4.4–4.4.4, 4.4W–4.4W.2) • Lollipop (5.0–5.1.1) • Marshmallow (developer preview 3)
  • 7. DEVELOPMENT ENVIRONMENT • There is many way for developing android application • Android Development Toolkit (ADT) integrated with Eclipse IDE. • Android Own Development IDE i.e. Android Studio. • NDK for native code using C/C++ Language mostly use for Game Engine. • Basic4Android for VB Developer.
  • 8. STEP TO CONFIGURE ADT FOR ECLIPSE • First Download JDK 1.7 or above • Set Environment Variables • JAVA_HOME : jre path ( C:/ProgramFiles/java/jre7/bin; ) • PATH : jdk path (C:/ProgramFiles/java/jdk1.7/bin; ) • Download Eclipse from www.eclipse.org • Download ADT Bundle from developer.android.com > tools > downloads > ADT for Eclipse • Open Eclipse > Go to Help Menu > Click Install New Software • Click on Add button located on upper right corner • Click on archive and select Downloaded ADT Zip/Rar from directory. • Give Name as Android Plugin. And click next
  • 9. STEP TO CONFIGURE ANDROID STUDIO • Android Studio is Platform for sdk by intelliJ • Download and install JDK 1.7 • Set Environment Variables • JAVA_HOME : jre path ( C:/ProgramFiles/java/jre7/bin;) • PATH : jdk path (C:/ProgramFiles/java/jdk1.7/bin; ) • Download Android Studio from developer.android.com > tools and install it
  • 10. ANDROID LAYOUTS • Linear Layout • Horizontal • Vertical • Relative Layout • Frame Layout • Table Layout • GridLayout
  • 11. ANDROID COMPONENTS & WIDGETS • Views • TextView • ImageView • WebView • ListView • GridView • VideoView • Input Fields • EditText • Spinner • DatePicker • TimePicker • Button • ProgressBar
  • 12. ANDROID ACTIVITY • Every UI screen of android application is known an Activity. • When java class extends with Activity class known as Android activity. • Execution of code should started after onCreate() method get invoked, at starting of activity class by default onCreate() method get invoked. • XML Layout get mapped in onCreate() method as follow. • Example : Public class MainActivity extends Activity{ @override protected void onCreate(Bundle savedInstanceState) super.onCreate(savedInstanceState); setContentView( R.layout.main) ; //XML Layout named as main.xml get mapped with MainActivity.class with this }
  • 13. CLICK EVENT • For click event in android we use setOnClickListener() method where overrided onClick() method is passed as parameter. • Example : Button b = (Button) findViewById (R.id.button1); // get access of button from XML Layout b.setOnClickListener(new onClickLestener(){ @override Public void onClick(View v){ //Code whatever want to do after clicking on button } }); onClickListener method can also use for TextView, ImageView or with any components.
  • 14. INTENTS • Intents are used to launch another activity from one activity. Or switch between two activities. • Syntax: • Intent <variable>=new Intent( currentActivity.this , nextActivity.class); • startActivity(<variable>) • Example: • Intent I = new Intent( MainActivity.this , SecondActivity.this ); • startActivity( I );
  • 15. NATIVE VS HYBRID APPLICATION • Hybrid Application allows developer to use their Web Application as a android application. • Hybrid Application allows developer to use it to any platform of OS instead of developing program for all OS. i.e. Same code use for Android , iOS or for Windows. • For static program native application is better option but for cloud base and Dynamic Web Application hybrid Application is better option • Follow next code for Hybrid Application Development
  • 16. HYBRID APPLICATION • Step 1 : Get WebView from widget in main.xml • Step 2 : set webview height and width as match_parent from properties • Step 3 : set padding as 0 for grasp screen size of android device. • Step 4 : then map webview in Activity class using following line of code • WebView w=(WebView)findViewById(R.id.webView1) • Step 5: load url into WebView using following line of code • w.loadUrl(“http://www.google.com”); //for access website through internet OR • w.loadUrl(“file:///android_asset/ProjectFolder/index.html”); //located in android asset folder • Step 6 : To unable JavaScript in webView WebSetting ws= w.getSettingd(); ws.setJavaScriptEnabled(true); • Step 7 : Finally need to get Internet permission to access websites from internet so add following code into AndroidManifest.xml file after opening of <manifest> tag • <uses-permission android:name=“android.permission.INTERNET”>
  • 17. FOR ANY QUERY -Mail on- yogesh.lakhole@gmail.com Or astutesoftwares@gmail.com