SlideShare a Scribd company logo
Android Basics Getting started to Android Development
Agenda First things first Creating your first Activity Android Basic Building Blocks Important Building Blocks Understanding Hello Android Demonstration.
First things first ofcourse we need JDK 5 or later Android SDK 1.0_r2 at  http://code.google.com/android/
First things first Get Eclipse with ADT plug -in (other IDE is also applicable) 1. Select Help > Software Updates > Find and Install … from within Eclipse. 2. In the resulting dialog box, choose Search for new features to install. 3. Select New Remote Site, and enter the following address into the dialog box: https://dl-ssl.google.com/android/eclipse/ 4. The new site you entered should now be checked. Click Finish. 5. Eclipse will now download the plug-in. When it’s fi nished, select Android Plugin > Developer Tools from the resulting Search Results dialog box, and click Next. 6. Read and then Accept the terms of the license agreement, and click Next and then Finish. As the ADT plug-in is not signed, you’ll be prompted before the installation continues. 7. When complete, you’ll have to restart Eclipse and update the ADT preferences. Restart and select Window ➪ Preferences … (or Eclipse > Preferences for the Mac OS). 8. Then select Android from the left panel. 9. Click Browse …, and navigate to the folder into which you unzipped the Android SDK, as shown in Figure 2-3; then click Apply and OK.
Creating your first Android Activity Just like your normal Eclipse Project except that we are now creating a project for Android.
Android Basic Building Blocks Activities  - UI component typically corresponding to one screen. Android uses a special class called an  Intent  to move from screen to screen. An intent describes what an application wants done. There is a related class called an  IntentFilter . It is a description of what intents an activity (or BroadcastReceiver, see below) is capable of handling. Broadcast Intent Receiver - a way to respond to an external event like notifications or alarm. Services  –  Faceless tasks that run in the background. Content Providers –  Enable applications to share data.
Important Building Blocks VIEWS  – are also known as widgets, gui components , can be basic, fancier and customized in Android. LAYOUT  – Controls how views are being laid out : FrameLayout : each child a layer LinearLayout : single row or column RelativeLayout : relative to other Views TableLayout : rows and columns AbsoluteLayout : <x,y> coordinates and they have  LAYOUT Parameters  – specifies many aspects of what is being rendered. RESOURCES  -  res/layout: declarative layout files   res/drawable: intended for drawing   res/anim: bitmaps, animations for transitions     res/values: externalized values for things like strings, colors, styles, etc.   res/xml: general XML files used at runtime   res/raw: binary files (e.g. Sound) NOTIFICATIONS  - A Notification is a small icon that appears in the status bar. Users can interact with this icon to  receive information. AndroidManifest.xml  - file is the control file that tells the system what to do with all the top-level components  you've created. For instance, this is the &quot;glue&quot; that actually specifies which Intents your Activities receive.
Understanding Hello Android - Activity import android.app.Activity; import android.os.Bundle; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } }
Understanding Hello Android – Layout XML <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?> <LinearLayout  xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; android:orientation=&quot;vertical&quot; android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;fill_parent&quot;  > <TextView    android:layout_width=&quot;fill_parent&quot;    android:layout_height=&quot;wrap_content&quot;    android:text=&quot;@string/hello&quot;  /> </LinearLayout>
Understanding Hello Android -  AndroidManifest.xml <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?> <manifest xmlns:android=&quot; http://schemas.android.com/apk/res/androi d&quot; package=&quot;hk.com.novare&quot;android:versionCode=&quot;1&quot;android:versionName=&quot;1.0.0&quot;> <application android:icon=&quot;@drawable/icon&quot;android:label=&quot;@string/app_name&quot;> <activity android:name=&quot;.HelloAndroid&quot; android:label=&quot;@string/app_name&quot;> <intent-filter> <action android:name=&quot;android.intent.action.MAIN&quot; /> <category android:name=&quot;android.intent.category.LAUNCHER&quot; /> </intent-filter> </activity> </application> </manifest>
Demonstration Simple CurrencyConverter

More Related Content

PPT
Android Applications Development
PDF
Android - From Zero to Hero @ DEVit 2017
PPT
android-tutorial-for-beginner
PPTX
04 activities - Android
PDF
Android Development: Build Android App from Scratch
PPTX
Android Development for Beginners with Sample Project - Day 1
PDF
Android Development Workshop
PPTX
Android basic principles
Android Applications Development
Android - From Zero to Hero @ DEVit 2017
android-tutorial-for-beginner
04 activities - Android
Android Development: Build Android App from Scratch
Android Development for Beginners with Sample Project - Day 1
Android Development Workshop
Android basic principles

What's hot (20)

PPT
Android Application Development Using Java
PDF
AndroidManifest
PDF
Android development basics
PPTX
Android Development Training
PPTX
Android Development Made Easy - With Sample Project
PDF
Android Programming Basics
PDF
Android App Development Intro at ESC SV 2012
PPT
Getting started with android dev and test perspective
PPT
Android development tutorial
PPTX
What’s new in aNdroid [Google I/O Extended Bangkok 2016]
PPT
PPT Companion to Android
PPTX
Android Life Cycle
PPTX
Android Studio Overview
PPT
Day 3: Getting Active Through Activities
PDF
Android studio
PDF
Training android
PPT
Android application development
PPT
Android application structure
PDF
Android session 2
PDF
Android session 1
Android Application Development Using Java
AndroidManifest
Android development basics
Android Development Training
Android Development Made Easy - With Sample Project
Android Programming Basics
Android App Development Intro at ESC SV 2012
Getting started with android dev and test perspective
Android development tutorial
What’s new in aNdroid [Google I/O Extended Bangkok 2016]
PPT Companion to Android
Android Life Cycle
Android Studio Overview
Day 3: Getting Active Through Activities
Android studio
Training android
Android application development
Android application structure
Android session 2
Android session 1
Ad

Viewers also liked (19)

ZIP
Android Application Development
PPT
Android ppt
PPTX
OO PHP eduLanka.lk
PPTX
Basics of android
PPTX
Android basics
PPTX
Introduction to android basics
PPTX
Android App Development (Basics)
PPT
Android activity, service, and broadcast recievers
PDF
Android activity
PDF
Android & Why Mobile Application Development
PDF
Android studio
PPTX
Introduction to Android and Android Studio
PPTX
Slideshare android
PPTX
Android ppt
KEY
Android Development: The Basics
PPTX
Learn Android app development in easy steps
PPTX
Android ppt
PPTX
Activity android
PPT
Android Application Development
Android ppt
OO PHP eduLanka.lk
Basics of android
Android basics
Introduction to android basics
Android App Development (Basics)
Android activity, service, and broadcast recievers
Android activity
Android & Why Mobile Application Development
Android studio
Introduction to Android and Android Studio
Slideshare android
Android ppt
Android Development: The Basics
Learn Android app development in easy steps
Android ppt
Activity android
Ad

Similar to Google Android (20)

PDF
Android application development
PPT
Part 2 android application development 101
PPTX
Get an Android tutorial for beginners
PDF
Android Bootcamp
PPTX
Android
PPTX
Android Basic
PPT
Synapseindia android apps introduction hello world
PPTX
Introduction to Android Development
PDF
Android Development
PPTX
Introduction & App Structure
PPTX
Workshop Android for Java Developers
PPT
Introduction to android
PPT
Day: 2 Environment Setup for Android Application Development
PPTX
Android apps development
PDF
Android TCJUG
KEY
Android Workshop
PPT
Android Tutorial
PPT
Android application development for TresmaxAsia
PDF
Androidoscon20080721 1216843094441821-9
PDF
Androidoscon20080721 1216843094441821-9
Android application development
Part 2 android application development 101
Get an Android tutorial for beginners
Android Bootcamp
Android
Android Basic
Synapseindia android apps introduction hello world
Introduction to Android Development
Android Development
Introduction & App Structure
Workshop Android for Java Developers
Introduction to android
Day: 2 Environment Setup for Android Application Development
Android apps development
Android TCJUG
Android Workshop
Android Tutorial
Android application development for TresmaxAsia
Androidoscon20080721 1216843094441821-9
Androidoscon20080721 1216843094441821-9

Recently uploaded (20)

PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
cuic standard and advanced reporting.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPT
Teaching material agriculture food technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Empathic Computing: Creating Shared Understanding
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Cloud computing and distributed systems.
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Network Security Unit 5.pdf for BCA BBA.
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Weekly Chronicles - August'25 Week I
cuic standard and advanced reporting.pdf
Electronic commerce courselecture one. Pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Teaching material agriculture food technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
The AUB Centre for AI in Media Proposal.docx
Empathic Computing: Creating Shared Understanding
NewMind AI Monthly Chronicles - July 2025
Diabetes mellitus diagnosis method based random forest with bat algorithm
Chapter 3 Spatial Domain Image Processing.pdf
Understanding_Digital_Forensics_Presentation.pptx
Machine learning based COVID-19 study performance prediction
Spectral efficient network and resource selection model in 5G networks
Cloud computing and distributed systems.

Google Android

  • 1. Android Basics Getting started to Android Development
  • 2. Agenda First things first Creating your first Activity Android Basic Building Blocks Important Building Blocks Understanding Hello Android Demonstration.
  • 3. First things first ofcourse we need JDK 5 or later Android SDK 1.0_r2 at http://code.google.com/android/
  • 4. First things first Get Eclipse with ADT plug -in (other IDE is also applicable) 1. Select Help > Software Updates > Find and Install … from within Eclipse. 2. In the resulting dialog box, choose Search for new features to install. 3. Select New Remote Site, and enter the following address into the dialog box: https://dl-ssl.google.com/android/eclipse/ 4. The new site you entered should now be checked. Click Finish. 5. Eclipse will now download the plug-in. When it’s fi nished, select Android Plugin > Developer Tools from the resulting Search Results dialog box, and click Next. 6. Read and then Accept the terms of the license agreement, and click Next and then Finish. As the ADT plug-in is not signed, you’ll be prompted before the installation continues. 7. When complete, you’ll have to restart Eclipse and update the ADT preferences. Restart and select Window ➪ Preferences … (or Eclipse > Preferences for the Mac OS). 8. Then select Android from the left panel. 9. Click Browse …, and navigate to the folder into which you unzipped the Android SDK, as shown in Figure 2-3; then click Apply and OK.
  • 5. Creating your first Android Activity Just like your normal Eclipse Project except that we are now creating a project for Android.
  • 6. Android Basic Building Blocks Activities - UI component typically corresponding to one screen. Android uses a special class called an Intent to move from screen to screen. An intent describes what an application wants done. There is a related class called an IntentFilter . It is a description of what intents an activity (or BroadcastReceiver, see below) is capable of handling. Broadcast Intent Receiver - a way to respond to an external event like notifications or alarm. Services – Faceless tasks that run in the background. Content Providers – Enable applications to share data.
  • 7. Important Building Blocks VIEWS – are also known as widgets, gui components , can be basic, fancier and customized in Android. LAYOUT – Controls how views are being laid out : FrameLayout : each child a layer LinearLayout : single row or column RelativeLayout : relative to other Views TableLayout : rows and columns AbsoluteLayout : <x,y> coordinates and they have LAYOUT Parameters – specifies many aspects of what is being rendered. RESOURCES - res/layout: declarative layout files res/drawable: intended for drawing res/anim: bitmaps, animations for transitions res/values: externalized values for things like strings, colors, styles, etc. res/xml: general XML files used at runtime res/raw: binary files (e.g. Sound) NOTIFICATIONS - A Notification is a small icon that appears in the status bar. Users can interact with this icon to receive information. AndroidManifest.xml - file is the control file that tells the system what to do with all the top-level components you've created. For instance, this is the &quot;glue&quot; that actually specifies which Intents your Activities receive.
  • 8. Understanding Hello Android - Activity import android.app.Activity; import android.os.Bundle; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } }
  • 9. Understanding Hello Android – Layout XML <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?> <LinearLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; android:orientation=&quot;vertical&quot; android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;fill_parent&quot; > <TextView android:layout_width=&quot;fill_parent&quot; android:layout_height=&quot;wrap_content&quot; android:text=&quot;@string/hello&quot; /> </LinearLayout>
  • 10. Understanding Hello Android - AndroidManifest.xml <?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?> <manifest xmlns:android=&quot; http://schemas.android.com/apk/res/androi d&quot; package=&quot;hk.com.novare&quot;android:versionCode=&quot;1&quot;android:versionName=&quot;1.0.0&quot;> <application android:icon=&quot;@drawable/icon&quot;android:label=&quot;@string/app_name&quot;> <activity android:name=&quot;.HelloAndroid&quot; android:label=&quot;@string/app_name&quot;> <intent-filter> <action android:name=&quot;android.intent.action.MAIN&quot; /> <category android:name=&quot;android.intent.category.LAUNCHER&quot; /> </intent-filter> </activity> </application> </manifest>