Rajab Davudov. Agenda Eclipse, ADT and Android SDK APK file Fundamentals – Activity – Service – Content Provider – Broadcast Receiver – Intent Hello World.

Slides:



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

Google Android Introduction to Mobile Computing. Android is part of the build a better phone process Open Handset Alliance produces Android Comprises.
Android OS : Core Concepts Dr. Jeyakesavan Veerasamy Sr. Lecturer University of Texas at Dallas
Application Fundamentals Android Development. Announcements Posting in D2L Tutorials.
Cosc 5/4730 Android Services. What is a service? From android developer web pages: Most confusion about the Service class actually revolves around what.
CSE2102 Introduction to Software Engineering Lab 2 Sept/4/2013.
Android OS 許軒中 李紀萱 鄧國盛 Hi
Filip Debelić What is it? Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google Android,
Mobile Programming Pertemuan 6 Presented by Mulyono Poltek NSC Surabaya.
This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department Asst.Prof.Dr.Ahmet Ünveren SPRING Computer Engineering Department.
ANDROID PROGRAMMING MODULE 1 – GETTING STARTED
Emerging Platform#4: Android Bina Ramamurthy.  Android is an Operating system.  Android is an emerging platform for mobile devices.  Initially developed.
Java RMI Project and Android Architecture
Mobile Application Development with ANDROID Tejas Lagvankar UMBC 29 April 2009.
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.
Introduction to Android Swapnil Pathak Advanced Malware Analysis Training Series.
 Understanding an activity  Starting an activity  Passing information between activities  Understanding intents  Understanding the activity lifecycle.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Content Providers & Services.
© Keren Kalif Intro to Android Development Written by Keren Kalif, Edited by Liron Blecher Contains slides from Google I/O presentation.
@2011 Mihail L. Sichitiu1 Android Introduction Platform Overview.
Introduction to Android Programming (CS5248 Fall 2015) Aditya Kulkarni August 26, 2015 *Based on slides from Paresh Mayami.
Operating system for mobile devices with a Java programming interface. Provides tools, e.g. a compiler, debugger, device emulator, and its own Java Virtual.
Smart Phone Laboratory ECEN 489 Srinivas Shakkottai.
01. Introduction to Android Prof. Oum Saokosal Master of Engineering in Information Systems, South Korea
Особенности разработки под мобильную платформу Almaty GTUG, 2011 Ермек Жумагулов
COMP 365 Android Development.  Perform operations in the background  Services do not have a user interface (UI)  Can run without appearing on screen.
This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit
DUE Hello World on the Android Platform.
CS378 - Mobile Computing Intents.
16 Services and Broadcast Receivers CSNB544 Mobile Application Development Thanks to Utexas Austin.
#gsa2012 Android Basics By: Amr Mohsen
Android for Java Developers Denver Java Users Group Jan 11, Mike
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems Recitation.
Overview of Android Application Development
CS378 - Mobile Computing Intents. Allow us to use applications and components that are part of Android System – start activities – start services – deliver.
COMP 365 Android Development.  Every android application has a manifest file called AndroidManifest.xml  Found in the Project folder  Contains critical.
Silicon Valley Code Camp 2009 “Embellish Your Pictures” Build an Application for an Android Phone Jack Ha, Balwinder Kaur Oct 3, 2009 – 5:15PM Room CCL.
ANDROID L. Grewe Components  Java Standard Development Kit (JDK) (download) (latest version)  AndroidStudio.
DKU-MUST Mobile ICT Education Center 10. Activity and Intent.
Services Background operating component without a visual interface Running in the background indefinitely Differently from Activity, Service in Android.
CSE 486/586, Spring 2014 CSE 486/586 Distributed Systems Android Programming Steve Ko Computer Sciences and Engineering University at Buffalo.
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.
Services. What is a Service? A Service is not a separate process. A Service is not a thread. A Service itself is actually very simple, providing two main.
The Ingredients of Android Applications. A simple application in a process In a classical programming environment, the OS would load the program code.
CS371m - Mobile Computing Intents 1. Allow us to use applications and components that are already part of Android System – start activities – start services.
Introduction to Android Programming
Android Application -Architecture.
Lecture 2: Android Concepts
Android 01: Fundamentals
CS371m - Mobile Computing Services and Broadcast Receivers
Lecture 2 Zablon Ochomo Android Programming Lecture 2 Zablon Ochomo
Instructor: Mazhar Hussain
Android Runtime – Dalvik VM
Android.
Activities and Intents
Android Mobile Application Development
CMPE419 Mobile Application Development
Android Programming Lecture 9
Application Development A Tutorial Driven Course
Activities and Intents
Android Platform, Android App Basic Components
Emerging Platform#3 Android & Programming an App
Mobile Programming Dr. Mohsin Ali Memon.
Lecture 2: Android Concepts
CMPE419 Mobile Application Development
Android Development Tools
Presentation transcript:

Rajab Davudov

Agenda Eclipse, ADT and Android SDK APK file Fundamentals – Activity – Service – Content Provider – Broadcast Receiver – Intent Hello World Fake Login App Play-Back Service

Eclipse + ADT + Android SDK Download Eclipse IDE for Java Developers from Menu [Help/Install New Software] add ADT site Download SDK – Tools – Android Platforms 4.0, 3.2, …,2.3.3,2.2, … – Extras

APK File AndroidManifest.xml – Activity, Service etc. list – Permissions and Features classes.dex – Dalvik bytecodes resources.arsc – Information about resources res/ – Resource Files

Activity An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an , or view a mapActivity Each time a new activity starts, the previous activity is stopped, but the system preserves the activity in a stack (the "back stack"). There are several callback methods that an activity might receive, due to a change in its state—whether the system is creating it, stopping it, resuming it, or destroying it You must declare your activity in the manifest file in order for it to be accessible to the system. You can start another activity by calling startActivity(), passing it an Intent that describes the activity you want to start.startActivity()Intent

Service A Service is an application component that can perform long-running operations in the background and does not provide a user interface.Service Once started, a service can run in the background indefinitely, even if the component that started it is destroyed. A bound service offers a client-server interface that allows components to interact with the service, send requests, get results, and even do so across processes with interprocess communication (IPC). onStartCommand() and onBind() onStartCommand()onBind() Like activities (and other components), you must declare all services in your application's manifest file.

Content Provider Content providers store and retrieve data and make it accessible to all applications. They're the only way to share data across applications; there's no common storage area that all Android packages can access. How a content provider actually stores its data under the covers is up to its designer. But all content providers implement a common interface for querying the provider and returning results — as well as for adding, altering, and deleting data. Each content provider exposes a public URI (wrapped as a Uri object) that uniquely identifies its data set. android.provider.Contacts.Phones.CONTENT_URIUri Abstract methods – query() – insert() – update() – delete() – getType() – onCreate()

Broadcast Receiver A broadcast receiver is a component that responds to system-wide broadcast announcements. Many broadcasts originate from the system—for example, a broadcast announcing that the screen has turned off, the battery is low, or a picture was captured. Although broadcast receivers don't display a user interface, they may create a status bar notification to alert the user when a broadcast event occurs.create a status bar notification

Intent Three of the core components of an application — activities, services, and broadcast receivers — are activated through messages, called intents. The intent itself, an Intent object, is a passive data structure holding an abstract description of an operation to be performed.Intent Contains – Component Name – Action – Data – Extras – Category – Flags

Practice Apps Hello World Fake Login App Play-Back Service

Think, Design, Code !!!

Rajab Davudov Senior Developer at Azerfon Market QR Code