SlideShare uma empresa Scribd logo
1 de 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 !!  

Mais conteúdo relacionado

Mais procurados

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
 

Mais procurados (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
 

Semelhante a 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
 

Semelhante a 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
 
Anveshan android
Anveshan androidAnveshan android
Anveshan android
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
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
 

Último

Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Jeffrey Haguewood
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
Kuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialKuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialJoão Esperancinha
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessWSO2
 
QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfROWELL MARQUINA
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...Karmanjay Verma
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsYoss Cohen
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 

Último (20)

Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
Kuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialKuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorial
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with Platformless
 
QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdf
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
Infrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platformsInfrared simulation and processing on Nvidia platforms
Infrared simulation and processing on Nvidia platforms
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 

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?