Getting Started with Android Development Rohit Ghatol.

Slides:



Advertisements
Similar presentations
Android Application Development A Tutorial Driven Course.
Advertisements

Programming with Android: System Architecture
Application Fundamentals Android Development. Announcements Posting in D2L Tutorials.
Android architecture overview
Introduction to Android Mohammad A. Gowayyed CS334-Spring 2014.
Android Overview. Android (Google) is a widely anticipated open source operating system for mobile devices, Supporting Bluetooth ( wireless for short.
The Android Activity Lifecycle. Slide 2 Introduction Working with the Android logging system Rotation and multiple layouts Understanding the Android activity.
Android 101 Application Fundamentals January 29, 2010.
Android Life Cycle CS328 Dick Steflik. Life Cycle The steps that an application goes through from starting to finishing Slightly different than normal.
Android Application Development. Agenda  Android Business Model  Why Android  Android application market space  Market Segments & Target customers.
Mobile Application Development
Google Android as a mobile development platform T Internet Technologies for Mobile Computing Olli Mäkinen.
Programming with Android: System Architecture
Programming with Android: System Architecture
Android Wentworth Institute of Technology Elec101 07/08 Douglas A. Arevalo-Santos.
Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department.
Introduction to Android Platform Overview
Android Overview Android (Google) is a widely anticipated open source operating system for mobile devices, Supporting Bluetooth ( wireless for short distance)
Android Application Development CSE 5520/4520 Wireless Networks.
Android Programming Day best Android Apps Lzo&feature=fvwrel.
Android Introduction Platform Overview.
Mobile Application Development with ANDROID Tejas Lagvankar UMBC 29 April 2009.
© by Pearson Education, Inc. All Rights Reserved. 1 Introduction to Android From “Android: How to Program” By Paul Deitel and Harvey Deitel.
Mobile Application Development with ANDROID. Agenda Mobile Application Development (MAD) Intro to Android platform Platform architecture Application building.
About me Yichuan Wang Android Basics Credit goes to Google and UMBC.
Software Architecture of Android Yaodong Bi, Ph.D. Department of Computing Sciences University of Scranton.
@2011 Mihail L. Sichitiu1 Android Introduction Platform Overview.
Android Programming By Mohsen Biglari Android Programming, Part1: Introduction 1 Part1: Introduction By Mohsen Biglari.
Android Info mostly based on Pro Android 3.  User Applications  Java Libraries – most of Java standard edition ◦ Activities/Services ◦ UI/Graphics/View.
Android development basics Introduction,Structure,Development Boncho Valkov.Net Developer.
Copyright© Jeffrey Jongko, Ateneo de Manila University Android.
Presentation Seminar on “IMAGE SLIDER –AN ANDROID APPLICATION”
ANDROID Presented By Mastan Vali.SK. © artesis 2008 | 2 1. Introduction 2. Platform 3. Software development 4. Advantages Main topics.
DUE Hello World on the Android Platform.
1 Android- Platform Overview. 2 What is Android? Android is a software stack for mobile devices that includes an operating system, middleware and key.
Android for Java Developers Denver Java Users Group Jan 11, Mike
ANDROID 응용 프로그래밍 과정 – 목차 - 안드로이드란 - 안드로이드가 만들어지게 된배경 - 안드로이드의 철학 - 안드로이드 환경설정 ( SDK download, eclipse plug-in 설정, 간단한 프로그램 실행 ) - 안드로이드 동작원리 - 안드로이드 핵심.
10/10/2015 E.R.Edwards 10/10/2015 Staffordshire University School of Computing Introduction to Android Overview of Android System Android Components Component.
© by Pearson Education, Inc. All Rights Reserved. 1 Introduction to Android From “Android: How to Program” By Paul Deitel and Harvey Deitel.
Overview of Android Application Development
Presentation on android based application
Building Twitter App Rohit Ghatol. About Me Rohit Ghatol 2.Project 3.Certified Scrum Master 4.Author “Beginning.
ANDROID L. Grewe Components  Java Standard Development Kit (JDK) (download) (latest version)  AndroidStudio.
Created By. Jainik B Patel Prashant A Goswami Gujarat Vidyapith Computer Department Ahmedabad.
Mobile Development. Name: Saurabh Software Developer.
Mobile Application Development with ANDROID Umang Patel(6537) LDCE.
By, Rutika R. Channawar. Content Introduction Open Handset Alliance Minimum Hardware Requirements Versions Feature Architecture Advantages Disadvantages.
Lecture 2: Android Concepts
1 Android Workshop Platform Overview. 2 What is Android?  Android is a software stack for mobile devices that includes an operating system, middleware.
Android By Collin Donaldson With Strong Contributions From: Anthony Kopczyk.
Android Development For Beginners. What is Android? Android is an open mobile phone platform that was developed by Google and later by Open Handset Alliance.
Android operating system N. Sravani M. Tech(CSE) (09251D5804)
Android. I. What’s Android Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google. Android is designed.
ANDROID OS Ravi Soni MTech (CS) III Sem. W HAT IS A NDROID ? Android is a software stack for mobile devices that includes an operating system, middleware.
Android. Android An Open Handset Alliance Project A software platform and operating system for mobile devices Based on the Linux kernel Developed by Google.
Workshop by T.Naveen sai kumar.
Android Application -Architecture.
Android 01: Fundamentals
Android Application Development 1 6 May 2018
ANDROID AN OPEN HANDSET ALLIANCE PROJECT
Android Runtime – Dalvik VM
Android.
Operating System.
Android Mobile Application Development
Software Engineering in Mobile Computing
CMPE419 Mobile Application Development
Android: System Architecture
Application Development A Tutorial Driven Course
Android Development Introduction to Android Development 2011/01/16
CMPE419 Mobile Application Development
Presentation transcript:

Getting Started with Android Development Rohit Ghatol

About Me Rohit Ghatol 2.Project 3.Certified Scrum Master 4.Author “Beginning PhoneGap 5.Founder TechNext Pune (Pune Developer Community)TechNext LinkedIn Profile LinkedIn Profile

Topics Understanding Android Android Building Blocks Putting Building Blocks Together Latest things in Android World Reference Material 3

Understanding Android 4

What is Android? Software stack for mobile devices that includes an operating system middleware key applications SDK to develop application 5

Android Architecture 6

Android OS Names 7

8 OS Version NicknameAPI LevelDate 1.1__29 th February Cupcake330 April Donut45 September Eclair726 October Froyo820 May Gingerbread96 th December Honeycomb1122 nd February XIcecream Sandwich 1419 th October

Key OS Capabilities 9

Android OS Capabilities Phone and OS features – 3G/4G,GPS, Accelerometer, Compass, Camera, SQLite, Wifi, Bluetooth, etc – Near Field Communication – Cloud to Device Messaging (C2DM) – Direct Wifi

Android OS Capabilities Notable Features of Android – All Applications are equal – Reuse of Data – Reuse of Functionality

All Applications are Equal Replace Home Application Replace Contacts, Dialer Applications Replace SMS, Applications Replace Settings Application OEM Customizations (e.g HTC Sense) 12

Reuse of Data Default Contact Manager Replaces What happens to data feed into the default Contact Manager? New Contact Manager

Reuse of Data Default Contact Manager Replaces New Contact Manager Content Provider But Uses “Replaces” means by default the new app is launched, but old app still exists

Reuse of Functionality New Requirement Share with Friends using 1.SMS 2. Time to learn SMS API and API and code them into my application! More code! Hee hee My Coupons

Reuse of Functionality SMS Mail Intention: Want to send Here are two applications who can do it for you? My Coupons

Reuse of Functionality SMS Mail My Coupons

Reuse of Functionality SMS Mail My Coupons

Android Environment Setup stalling.html 19

20 Android SDK Eclipse ADT Android ….. ………………. Android 3.2 Android 4.x Android 2.2 Google API 2.2 SDK Manager AVD Manager Manages Emulator

Android Application Dex File Android Manifest Resources MyApp.apk Signed by Self Signed Private Key

Identity of Android Application 22 Identity PartExample Package Namecom.sparklytix.android.app.twitter versionCode1 (numeric value 2,3,4,..101,102) Private Key

Android Build Cycle 23.java.apk.dex.class javacdx apt AndroidManifest.xml resources AndroidManifest.xml resources

How Applications behave? 24

25 Dalvik VM Linux Process Linux Kernel Process Dalvik VM Dalvik VM Dalvik VM Uid 1 Uid 2 Uid 3 data com.xyz. com.abc.skype com.koko.sukudo shared_prefs files databases... UID 1 UID 2 UID 3

Android Building Blocks 26

Read more - Activity Service Broadcast Receiver Alarm Manager Noti- fication Manager Content Provider Intents Content Resolver Building Blocks Other Components ……

First Android Application 28

29

30

31

32

33

34

Interacting with Buttons 35

Interacting with Button 36

Interacting with Buttons 37

38

Screen Navigation 39

40

41

42

43

44

45

startActivityForResult() 46

47

48

49

50

51

Intents 52

Understanding Intent IntentsExplicitImplicit Need Class Name Need ACTION CATEGORY DATA

Program Launcher <manifest xmlns:android=" package="com.sample“ android:versionCode="1“ android:versionName="1.0"> <activity android:name=".HelloWorld" Program launcher shows all the activities which have MAIN Action and LAUNCHER category

Conflicts with implicit Intents So what happens two activities have the exact same intent filter and an intent is fired. Simple you choose one application, and you have an option to tell to system that application as the default application hence forth

Intent API Reference Intent to launch an Activity Context.startActivity(intent) Context.startActivityForResult(intent) Intent to launch an Service Context.startService(intent) Intent to send a broadcast Context.sendBroadCast(intent)

Activity 57

Activity Life Cycle

Foreground LifeCycle Visible LifeCycle Complete LifeCycle Activity Life Cycle (made easy) onCreate onDestroy onStart onStop onResume onPause

What to do in what method? onCreate onDestroy onStart onStop onResume onPause

Services 61

Calling Service Activity Service void onStartCommand (Intent intent,…){ } startService(intent) Fire & Forget

Calling Service Activity Service 1.bindService(intent) 2.….. 3.service.foo() 4.int result=service.bar() void foo(){ } int bar(){ } RPC Style

64

Broadcast Receivers 65

Broadcast Receivers App 1 Android OS App 2 Your App Custom Event 1 Custom Event 2 Battery Low Roaming Boot Network Change Interested in any of these Events.

Broadcast Receivers No Life Cycle Methods Only Call back method 10 second limit before ANR Need not register with Android Manifest Can be registered at Runtime

Use case Application 68

Mail Application – Use Case

Building Blocks of Android ActivityService Broadcast Receiver Content Provider/ SQL ite Database Mail Sync Data Store ( List) Phone Boots Communication is using Intents

Activity Mail Sync Service Phone Boots Broadcast R Data Store ( List) Database Events.. Alarm M.. Notifi. M.. Phone Boots

Mail Sync Service Phone Boots Broadcast R Data Store ( List) Database Events..Alarm M.. Phone Boots Mail Sync (5 mins) Activity Notifi. M..

Mail Sync Service Phone Boots Broadcast R Data Store ( List) Database Events..Alarm M.. Phone Boots Mail Sync (5 mins) Activity Notifi. M.. Broadcast R

Mail Sync Service Phone Boots Broadcast R Data Store ( List) Database Events..Alarm M.. Phone Boots Mail Sync (5 mins) Activity Notifi. M.. Broadcast R

Mail Sync Service Phone Boots Broadcast R Data Store ( List) Database Events..Alarm M.. Phone Boots Mail Sync (5 mins) Activity Notifi. M.. starts

Mail Sync Service Phone Boots Broadcast R Data Store ( List) Database Events..Alarm M.. Phone Boots Mail Sync (5 mins) Activity Notifi. M.. Completes

Mail Sync Service Phone Boots Broadcast R Data Store ( List) Database Events..Alarm M.. Phone Boots Mail Sync (5 mins) Activity Notifi. M.. Stores

Mail Sync Service Phone Boots Broadcast R Data Store ( List) Database Events..Alarm M.. Phone Boots Mail Sync (5 mins) Activity Notifi. M.. Stores Mail Notification

Mail Sync Service Phone Boots Broadcast R Data Store ( List) Database Events..Alarm M.. Phone Boots Mail Sync (5 mins) Activity Notifi. M.. Mail Notification

Mail Sync Service Phone Boots Broadcast R Events..Alarm M.. Phone Boots Mail Sync (5 mins) Activity Notifi. M.. Mail Notification Data Store ( List) Database

Mail Sync Service Phone Boots Broadcast R Data Store ( List) Database Events..Alarm M.. Phone Boots Mail Sync (5 mins) Activity Notifi. M.. Mail Notification

Twitter App All these Building blocks are covered in more detail on 3 rd November at 3:40 p.m in “Building Twitter App for Android”Building Twitter App for Android 82

Q & A 83

More about Me Twitter - TechGig - LinkedIn Presentations YouTube Tutorials -