SlideShare ist ein Scribd-Unternehmen logo
1 von 72
Between love and madness lies obsession
Platform PresentationYour First Android Experience Shrey Malhotra 27 / April / 2011
Introduction An droid a robot with a human appearance. What’s an Android? “Android is a software stack for mobile devices that includes an operating system, middleware and key applications”
Introduction What’s an Android? Operating System for Mobile Devices HTC G1, GOOGLE NEXUS S SDK Compiler, tools and IDE Market Free or paid A Platform for your Applications Based on the Linux kernel, Development on JAVA
Introduction Google’s Master Plan  • make the cloud more accessible • increase connectivity • make the client more powerful
Introduction Google’s Master Plan  August 2005
Introduction Google’s Master Plan  Open Handset Alliance November 2007
Introduction Google’s Master Plan  Open Handset Alliance November 2007
Introduction Google’s Master Plan  Android SDK November 2007
Introduction Google’s Master Plan  September 2008
Introduction Google’s Master Plan
Why Android? Free of cost  Available to all
Why Android? Thousands of useful apps Open Market Place
Why Android? Develop on any platform.  Windows,Mac,Linux Not just for mobile
Platform  Hardware Android is not a single piece of hardware; it's a complete, end-to-end software platform that can be adapted to work on any number of hardware configurations. Everything is there, from the bootloader all the way up to the applications.   Operating System(s) Android uses Linux for its device drivers, memory management, process management, and networking. The next level up contains the Android native libraries. They are all written in C/C++ internally, but you’ll be calling them through Java interfaces. In this layer you can find the Surface Manager, 2D and 3D graphics, Media codecs, the SQL database (SQLite), and a native web browser engine (WebKit). Dalvik Virtual Machine. Dalvik runs dex files, which are converted at compile time from standard class and jar files.
Platform  Network Connectivity It supports wireless communications using: GSM mobile-phone technology 3G Edge 802.11 Wi-Fi networks Security Android is a multi-process system, in which each application (and parts of the system) runs in its own process. Most security between applications and the system is enforced at the process level through standard Linux facilities, such as user and group IDs that are assigned to applications.
Platform
Getting Started  Android – The Family    Android 3.0 (Honeycomb)         	SDK Ver 11  Android 2.3.3 (Gingerbread) 	 SDK Ver 10     Android 2.3 (Gingerbread) 	   SDK Ver 9  Android 2.2 (Froyo)		 SDK Ver 8 Android 2.1 (Eclair)	 	 SDK Ver 7 Android 1.6 (Donut)       	 SDK Ver 4 Android 1.5 (Cupcake) 	SDK Ver 3
Getting Started - Prerequisites  Things Required ? Java Developers Kit(JDK) Android SDK  Eclipse or any other IDE  Android Development Tool ADT Where to find all these ? Lets see !! IDE - Integrated Development Environment
Getting Started - Prerequisites  Java Developers Kit (JDK) http://www.oracle.com/technetwork/java/javase/downloads/index.html Or Google –  “download jdk” :P
Getting Started - Prerequisites  Java Developers Kit (JDK)
Getting Started - Prerequisites  Java Developers Kit (JDK)
Getting Started - Prerequisites  Android SDK http://developer.android.com/sdk/index.html
Getting Started - Prerequisites  Eclipse - IDE http://www.eclipse.org/downloads/
Getting Started - Prerequisites  Android Developer Tool (ADT) Add https://dl-ssl.google.com/android/eclipse/ to Eclipse Update Manager
Getting Started - Prerequisites  Things Required ? Java Developers Kit(JDK) Android SDK  Eclipse or any other IDE   Android Development Tool ADT IDE - Integrated Development Environment
Getting Started - Installing Preparing the Environment Installing  JDK Eclipse Android SDK ADT  Lets see how it is done
Getting Started - Installing Preparing the Environment After Installing JAVA
Getting Started - Installing Preparing the Environment After Installing Android SDK *skip this step if you have the folder that we gave you
Getting Started - Installing Preparing the Environment  Adding Platforms and Other Components *skip this step if you have the folder that we gave you
Getting Started - Installing Preparing the Environment *skip this step if you have the folder that we gave you
Getting Started - Installing Preparing the Environment Set Up ADT
Getting Started - Installing Preparing the Environment
Getting Started - Installing Preparing the Environment
Getting Started - Installing Preparing the Environment If this option is available , then the installation was done correctly
Getting Started - Installing Preparing the Environment Location of the sdk folder
Getting Started – Hello Android !!  Hello Android !!
Getting Started – Hello Android !! Creating a New Android Project From Eclipse,  Select File > New > Project > Android Project (only after everything was set up properly)
Getting Started – Hello Android !! Creating a New Android Project Fill in the project details with the following values: Project name: HelloAndroid Application name: HelloAndroid Package name: com.example.helloandroid Create Activity: HelloAndroid
Getting Started – Hello Android !!
Getting Started – Hello Android !!
Getting Started – Hello Android !!
Getting Started – Hello Android !! Project Name This is the Eclipse Project name — the name of the directory that will contain the project files. Application Name This is the human-readable title for your application — the name that will appear on the Android device. Package Name This is the package namespace (following the same rules as for packages in the Java programming language) that you want all your source code to reside under. The example above uses the "com.example" namespace Create Activity An Activity is simply a class that can run and do work. It can create a User Interface if it chooses, but it doesn't need to. As the checkbox suggests, this is optional, but an Activity is almost always used as the basis for an application.
Source directories, where your classes go… SOURCE CODE Getting Started – Hello Android !!
Getting Started – Hello Android !! package com.example.helloandroid; 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);     } }
Getting Started – Hello Android !! Run the Application The Eclipse plug-in makes it easy to run your applications: Select Run > Run. Select "Android Application". `
Getting Started – Hello Android !! Run the Application OOPS!! An Error
Getting Started – Running Your Application Create an Android Virtual Device (Emulator ) An Android Virtual Device (AVD) is an emulator that simulates a real-world Android device, such as a mobile phone or Tablet PC. You can use AVDs to test how your application performs on a wide variety of Android devices, without having to buy every gadget on the market. Start the AVD Manager:  In Eclipse: select Window > Android SDK and AVD Manager, or click the Android SDK and AVD Manager icon in the Eclipse toolbar. *only one time process
Getting Started – Running Your Application Create an Android Virtual Device (Emulator ) In the Virtual Devices panel, you'll see a list of existing AVDs. Click New to create a new AVD. The Create New AVD dialog appears. *only one time process
Getting Started – Running Your Application Create an Android Virtual Device (Emulator ) Fill in the details for the AVD.  Give it a name, a platform target, an SD card size, and a skin (HVGA is default). You can also add specific hardware features of the emulated device by clicking the New... button and selecting the feature.  *only one time process
Getting Started – Running Your Application Start an Android Virtual Device (Emulator )
Getting Started – Running Your Application It takes times to start up the emulator...
Getting Started – Running Your Application
Getting Started – Hello Android !! Lets run the App again !! Select Run > Run. Select "Android Application". or Press Ctrl + F11 `
Getting Started – Running Your Application Congratulations your first Android App !!
Getting Started – Running Your Application
Getting Started – Running Your Application
Understanding the Code Activity: A single screen. Your app is made up of one or more Activities Service: A task that can be running while not visible.
Understanding the Code Intent: Code to accomplish a verb, like “call number” or “open comic” and to allow app to app communication.
Understanding the Code Content Provider: Data and an API that any app can access. Android provides contact information through a Content Provider.
Understanding the Code Resource: Text, pictures, sound, etc. Everything is broken out of the code into a resource, which is compiled into a class called R
Understanding the Code Drawable: A bitmap or xml definition of something that can be drawn.
Understanding the Code The manifest • Declares the permissions the application will need  (uses-permission) • Declare permissions that activities or services might require to use your app (permission) ,[object Object],• Provide hardware access  And much more..
Understanding the Code <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.bikerolas" android:versionCode="30" android:versionName="1.2"> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.ACCESS_LOCATION /> <uses-permission android:name="android.permission.ACCESS_GPS" /> <uses-permission android:name="android.permission. ACCESS_CELL_ID /> <application android:icon="@drawable/flingicn1" android:label="@string/app_name" android:debuggable="false"> <activity android:name=".Fling" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <service android:name=".FlingService" /> <receiver android:name=".FlingServiceManager" android:permission="android.permission.RECEIVE_BOOT_COMPLETED"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> </intent-filter> </receiver> </application> <uses-sdkandroid:minSdkVersion="2"></uses-sdk> </manifest>
Understanding the Code The XML Layout Lets have a look * *Screen-cast
Understanding the Code To be continued…  
Q & A Any questions?  
Thank You !!  

Weitere ähnliche Inhalte

Was ist angesagt?

android-tutorial-for-beginner
android-tutorial-for-beginnerandroid-tutorial-for-beginner
android-tutorial-for-beginnerAjailal Parackal
 
Android Programming made easy
Android Programming made easyAndroid Programming made easy
Android Programming made easyLars Vogel
 
What’s new in aNdroid [Google I/O Extended Bangkok 2016]
What’s new in aNdroid [Google I/O Extended Bangkok 2016]What’s new in aNdroid [Google I/O Extended Bangkok 2016]
What’s new in aNdroid [Google I/O Extended Bangkok 2016]Sittiphol Phanvilai
 
Android Development in a Nutshell
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a NutshellAleix Solé
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A NutshellTed Chien
 
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 dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_authlzongren
 
Android development basics
Android development basicsAndroid development basics
Android development basicsPramesh Gautam
 
Android Studio Overview
Android Studio OverviewAndroid Studio Overview
Android Studio OverviewSalim Hosen
 
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
 
Five android architecture
Five android architectureFive android architecture
Five android architectureTomislav Homan
 
Android Development Workshop
Android Development WorkshopAndroid Development Workshop
Android Development WorkshopPeter Robinett
 
Android Programming Basics
Android Programming BasicsAndroid Programming Basics
Android Programming BasicsEueung Mulyana
 
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
 
Android basic principles
Android basic principlesAndroid basic principles
Android basic principlesHenk Laracker
 

Was ist angesagt? (20)

android-tutorial-for-beginner
android-tutorial-for-beginnerandroid-tutorial-for-beginner
android-tutorial-for-beginner
 
Android Programming made easy
Android Programming made easyAndroid Programming made easy
Android Programming made easy
 
Getting Started With Android
Getting Started With AndroidGetting Started With Android
Getting Started With Android
 
What’s new in aNdroid [Google I/O Extended Bangkok 2016]
What’s new in aNdroid [Google I/O Extended Bangkok 2016]What’s new in aNdroid [Google I/O Extended Bangkok 2016]
What’s new in aNdroid [Google I/O Extended Bangkok 2016]
 
Ramakri
RamakriRamakri
Ramakri
 
Android Development in a Nutshell
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a Nutshell
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A Nutshell
 
Introduction to Android and Android Studio
Introduction to Android and Android StudioIntroduction to Android and Android Studio
Introduction to Android and Android Studio
 
Android dev o_auth
Android dev o_authAndroid dev o_auth
Android dev o_auth
 
Intro to Android Programming
Intro to Android ProgrammingIntro to Android Programming
Intro to Android Programming
 
Android development basics
Android development basicsAndroid development basics
Android development basics
 
Android Studio Overview
Android Studio OverviewAndroid Studio Overview
Android Studio Overview
 
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
 
Five android architecture
Five android architectureFive android architecture
Five android architecture
 
Android Development Workshop
Android Development WorkshopAndroid Development Workshop
Android Development Workshop
 
Android architecture
Android architectureAndroid architecture
Android architecture
 
Android Programming Basics
Android Programming BasicsAndroid Programming Basics
Android Programming Basics
 
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
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Android basic principles
Android basic principlesAndroid basic principles
Android basic principles
 

Ähnlich wie Android

androidPramming.ppt
androidPramming.pptandroidPramming.ppt
androidPramming.pptBijayKc16
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspectiveGunjan Kumar
 
Introduction To Android For Beginners.
Introduction To Android For Beginners.Introduction To Android For Beginners.
Introduction To Android For Beginners.Sandeep Londhe
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Javaamaankhan
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guidemagicshui
 
Android studio
Android studioAndroid studio
Android studioAndri Yabu
 
Day: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentDay: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentAhsanul Karim
 
Android SDK and PhoneGap
Android SDK and PhoneGapAndroid SDK and PhoneGap
Android SDK and PhoneGapDoncho Minkov
 
Android deep dive
Android deep diveAndroid deep dive
Android deep diveAnuSahniNCI
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android ApplicationArcadian Learning
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Developmentonkar_bhosle
 
03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application DevelopmentArief Gunawan
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studioAbdul Basit
 
Java Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopJava Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopKasun Dananjaya Delgolla
 

Ähnlich wie Android (20)

Webinar on Google Android SDK
Webinar on Google Android SDKWebinar on Google Android SDK
Webinar on Google Android SDK
 
androidPramming.ppt
androidPramming.pptandroidPramming.ppt
androidPramming.ppt
 
Synapseindia android apps application
Synapseindia android apps applicationSynapseindia android apps application
Synapseindia android apps application
 
Getting started with android dev and test perspective
Getting started with android   dev and test perspectiveGetting started with android   dev and test perspective
Getting started with android dev and test perspective
 
Introduction To Android For Beginners.
Introduction To Android For Beginners.Introduction To Android For Beginners.
Introduction To Android For Beginners.
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Java
 
Android - Getting started with Android
Android - Getting started with Android Android - Getting started with Android
Android - Getting started with Android
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guide
 
Android studio
Android studioAndroid studio
Android studio
 
Day: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application DevelopmentDay: 2 Environment Setup for Android Application Development
Day: 2 Environment Setup for Android Application Development
 
Android SDK and PhoneGap
Android SDK and PhoneGapAndroid SDK and PhoneGap
Android SDK and PhoneGap
 
Android deep dive
Android deep diveAndroid deep dive
Android deep dive
 
Industrial Training in Android Application
Industrial Training in Android ApplicationIndustrial Training in Android Application
Industrial Training in Android Application
 
Android Intro
Android IntroAndroid Intro
Android Intro
 
Android
Android Android
Android
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
Anveshan android
Anveshan androidAnveshan android
Anveshan android
 
03 Beginning Android Application Development
03 Beginning Android Application Development03 Beginning Android Application Development
03 Beginning Android Application Development
 
Introduction_to_android_and_android_studio
Introduction_to_android_and_android_studioIntroduction_to_android_and_android_studio
Introduction_to_android_and_android_studio
 
Java Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development WorkshopJava Meetup - 12-03-15 - Android Development Workshop
Java Meetup - 12-03-15 - Android Development Workshop
 

Kürzlich hochgeladen

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)Samir Dash
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAnitaRaj43
 

Kürzlich hochgeladen (20)

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 

Android

  • 1. Between love and madness lies obsession
  • 2. Platform PresentationYour First Android Experience Shrey Malhotra 27 / April / 2011
  • 3. Introduction An droid a robot with a human appearance. What’s an Android? “Android is a software stack for mobile devices that includes an operating system, middleware and key applications”
  • 4. Introduction What’s an Android? Operating System for Mobile Devices HTC G1, GOOGLE NEXUS S SDK Compiler, tools and IDE Market Free or paid A Platform for your Applications Based on the Linux kernel, Development on JAVA
  • 5. Introduction Google’s Master Plan • make the cloud more accessible • increase connectivity • make the client more powerful
  • 7. Introduction Google’s Master Plan Open Handset Alliance November 2007
  • 8. Introduction Google’s Master Plan Open Handset Alliance November 2007
  • 9. Introduction Google’s Master Plan Android SDK November 2007
  • 10. Introduction Google’s Master Plan September 2008
  • 12. Why Android? Free of cost Available to all
  • 13. Why Android? Thousands of useful apps Open Market Place
  • 14. Why Android? Develop on any platform. Windows,Mac,Linux Not just for mobile
  • 15. Platform Hardware Android is not a single piece of hardware; it's a complete, end-to-end software platform that can be adapted to work on any number of hardware configurations. Everything is there, from the bootloader all the way up to the applications.   Operating System(s) Android uses Linux for its device drivers, memory management, process management, and networking. The next level up contains the Android native libraries. They are all written in C/C++ internally, but you’ll be calling them through Java interfaces. In this layer you can find the Surface Manager, 2D and 3D graphics, Media codecs, the SQL database (SQLite), and a native web browser engine (WebKit). Dalvik Virtual Machine. Dalvik runs dex files, which are converted at compile time from standard class and jar files.
  • 16. Platform Network Connectivity It supports wireless communications using: GSM mobile-phone technology 3G Edge 802.11 Wi-Fi networks Security Android is a multi-process system, in which each application (and parts of the system) runs in its own process. Most security between applications and the system is enforced at the process level through standard Linux facilities, such as user and group IDs that are assigned to applications.
  • 18. Getting Started Android – The Family   Android 3.0 (Honeycomb) SDK Ver 11 Android 2.3.3 (Gingerbread) SDK Ver 10 Android 2.3 (Gingerbread) SDK Ver 9 Android 2.2 (Froyo) SDK Ver 8 Android 2.1 (Eclair) SDK Ver 7 Android 1.6 (Donut) SDK Ver 4 Android 1.5 (Cupcake) SDK Ver 3
  • 19. Getting Started - Prerequisites Things Required ? Java Developers Kit(JDK) Android SDK Eclipse or any other IDE Android Development Tool ADT Where to find all these ? Lets see !! IDE - Integrated Development Environment
  • 20. Getting Started - Prerequisites Java Developers Kit (JDK) http://www.oracle.com/technetwork/java/javase/downloads/index.html Or Google – “download jdk” :P
  • 21. Getting Started - Prerequisites Java Developers Kit (JDK)
  • 22. Getting Started - Prerequisites Java Developers Kit (JDK)
  • 23.
  • 24.
  • 25. Getting Started - Prerequisites Android SDK http://developer.android.com/sdk/index.html
  • 26.
  • 27. Getting Started - Prerequisites Eclipse - IDE http://www.eclipse.org/downloads/
  • 28.
  • 29. Getting Started - Prerequisites Android Developer Tool (ADT) Add https://dl-ssl.google.com/android/eclipse/ to Eclipse Update Manager
  • 30. Getting Started - Prerequisites Things Required ? Java Developers Kit(JDK) Android SDK  Eclipse or any other IDE  Android Development Tool ADT IDE - Integrated Development Environment
  • 31. Getting Started - Installing Preparing the Environment Installing JDK Eclipse Android SDK ADT Lets see how it is done
  • 32. Getting Started - Installing Preparing the Environment After Installing JAVA
  • 33. Getting Started - Installing Preparing the Environment After Installing Android SDK *skip this step if you have the folder that we gave you
  • 34. Getting Started - Installing Preparing the Environment Adding Platforms and Other Components *skip this step if you have the folder that we gave you
  • 35. Getting Started - Installing Preparing the Environment *skip this step if you have the folder that we gave you
  • 36. Getting Started - Installing Preparing the Environment Set Up ADT
  • 37. Getting Started - Installing Preparing the Environment
  • 38. Getting Started - Installing Preparing the Environment
  • 39. Getting Started - Installing Preparing the Environment If this option is available , then the installation was done correctly
  • 40. Getting Started - Installing Preparing the Environment Location of the sdk folder
  • 41. Getting Started – Hello Android !! Hello Android !!
  • 42. Getting Started – Hello Android !! Creating a New Android Project From Eclipse, Select File > New > Project > Android Project (only after everything was set up properly)
  • 43. Getting Started – Hello Android !! Creating a New Android Project Fill in the project details with the following values: Project name: HelloAndroid Application name: HelloAndroid Package name: com.example.helloandroid Create Activity: HelloAndroid
  • 44. Getting Started – Hello Android !!
  • 45. Getting Started – Hello Android !!
  • 46. Getting Started – Hello Android !!
  • 47. Getting Started – Hello Android !! Project Name This is the Eclipse Project name — the name of the directory that will contain the project files. Application Name This is the human-readable title for your application — the name that will appear on the Android device. Package Name This is the package namespace (following the same rules as for packages in the Java programming language) that you want all your source code to reside under. The example above uses the "com.example" namespace Create Activity An Activity is simply a class that can run and do work. It can create a User Interface if it chooses, but it doesn't need to. As the checkbox suggests, this is optional, but an Activity is almost always used as the basis for an application.
  • 48. Source directories, where your classes go… SOURCE CODE Getting Started – Hello Android !!
  • 49. Getting Started – Hello Android !! package com.example.helloandroid; 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); } }
  • 50. Getting Started – Hello Android !! Run the Application The Eclipse plug-in makes it easy to run your applications: Select Run > Run. Select "Android Application". `
  • 51. Getting Started – Hello Android !! Run the Application OOPS!! An Error
  • 52. Getting Started – Running Your Application Create an Android Virtual Device (Emulator ) An Android Virtual Device (AVD) is an emulator that simulates a real-world Android device, such as a mobile phone or Tablet PC. You can use AVDs to test how your application performs on a wide variety of Android devices, without having to buy every gadget on the market. Start the AVD Manager: In Eclipse: select Window > Android SDK and AVD Manager, or click the Android SDK and AVD Manager icon in the Eclipse toolbar. *only one time process
  • 53. Getting Started – Running Your Application Create an Android Virtual Device (Emulator ) In the Virtual Devices panel, you'll see a list of existing AVDs. Click New to create a new AVD. The Create New AVD dialog appears. *only one time process
  • 54. Getting Started – Running Your Application Create an Android Virtual Device (Emulator ) Fill in the details for the AVD. Give it a name, a platform target, an SD card size, and a skin (HVGA is default). You can also add specific hardware features of the emulated device by clicking the New... button and selecting the feature. *only one time process
  • 55. Getting Started – Running Your Application Start an Android Virtual Device (Emulator )
  • 56. Getting Started – Running Your Application It takes times to start up the emulator...
  • 57. Getting Started – Running Your Application
  • 58. Getting Started – Hello Android !! Lets run the App again !! Select Run > Run. Select "Android Application". or Press Ctrl + F11 `
  • 59. Getting Started – Running Your Application Congratulations your first Android App !!
  • 60. Getting Started – Running Your Application
  • 61. Getting Started – Running Your Application
  • 62. Understanding the Code Activity: A single screen. Your app is made up of one or more Activities Service: A task that can be running while not visible.
  • 63. Understanding the Code Intent: Code to accomplish a verb, like “call number” or “open comic” and to allow app to app communication.
  • 64. Understanding the Code Content Provider: Data and an API that any app can access. Android provides contact information through a Content Provider.
  • 65. Understanding the Code Resource: Text, pictures, sound, etc. Everything is broken out of the code into a resource, which is compiled into a class called R
  • 66. Understanding the Code Drawable: A bitmap or xml definition of something that can be drawn.
  • 67.
  • 68. Understanding the Code <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.bikerolas" android:versionCode="30" android:versionName="1.2"> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.ACCESS_LOCATION /> <uses-permission android:name="android.permission.ACCESS_GPS" /> <uses-permission android:name="android.permission. ACCESS_CELL_ID /> <application android:icon="@drawable/flingicn1" android:label="@string/app_name" android:debuggable="false"> <activity android:name=".Fling" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <service android:name=".FlingService" /> <receiver android:name=".FlingServiceManager" android:permission="android.permission.RECEIVE_BOOT_COMPLETED"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED" /> </intent-filter> </receiver> </application> <uses-sdkandroid:minSdkVersion="2"></uses-sdk> </manifest>
  • 69. Understanding the Code The XML Layout Lets have a look * *Screen-cast
  • 70. Understanding the Code To be continued…  
  • 71. Q & A Any questions?