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)

PPTX
Creating the first app with android studio
PDF
Android tutorial
PDF
Installing eclipse & sdk
PPT
Industrial Training in Android Application
PPT
Day: 2 Environment Setup for Android Application Development
PPT
Day 3: Getting Active Through Activities
PDF
Android development module
PDF
Android Basic- CMC
PPT
Getting started with android studio
PPT
Android Bootcamp Tanzania:understanding ui in_android
PDF
Android interview questions and answers
PPT
Android tutorial
PPT
Android tutorial
PPT
Android tutorial
PPT
Android tutorial
PDF
Android Intro
PPT
Lec005 android start_program
PPTX
Android Development project
PPTX
Android Basic
PPTX
Android
Creating the first app with android studio
Android tutorial
Installing eclipse & sdk
Industrial Training in Android Application
Day: 2 Environment Setup for Android Application Development
Day 3: Getting Active Through Activities
Android development module
Android Basic- CMC
Getting started with android studio
Android Bootcamp Tanzania:understanding ui in_android
Android interview questions and answers
Android tutorial
Android tutorial
Android tutorial
Android tutorial
Android Intro
Lec005 android start_program
Android Development project
Android Basic
Android

More from Michael Angelo Rivera (6)

PPTX
Agile Process - Developers Perspective on Scrum
PPT
Android application development for TresmaxAsia
PPT
Part 2 android application development 101
PPT
Part 1 robot in the making
PPT
Google Web Toolkit
PPT
Yahoo Web Search Api
Agile Process - Developers Perspective on Scrum
Android application development for TresmaxAsia
Part 2 android application development 101
Part 1 robot in the making
Google Web Toolkit
Yahoo Web Search Api

Recently uploaded (20)

PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Mushroom cultivation and it's methods.pdf
PPTX
cloud_computing_Infrastucture_as_cloud_p
PDF
Approach and Philosophy of On baking technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Machine Learning_overview_presentation.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PPTX
A Presentation on Artificial Intelligence
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Empathic Computing: Creating Shared Understanding
Accuracy of neural networks in brain wave diagnosis of schizophrenia
NewMind AI Weekly Chronicles - August'25-Week II
Building Integrated photovoltaic BIPV_UPV.pdf
TLE Review Electricity (Electricity).pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Mushroom cultivation and it's methods.pdf
cloud_computing_Infrastucture_as_cloud_p
Approach and Philosophy of On baking technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Machine learning based COVID-19 study performance prediction
Machine Learning_overview_presentation.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Univ-Connecticut-ChatGPT-Presentaion.pdf
A Presentation on Artificial Intelligence

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>