Android intro Building UI #1: interactions. AndroidManifest.xml permissions 2.

Slides:



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

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.
Android 02: Activities David Meredith
The Android Activity Lifecycle. Slide 2 Introduction Working with the Android logging system Rotation and multiple layouts Understanding the Android activity.
Lec 06 AsyncTask Local Services IntentService Broadcast Receivers.
Permissions.  Applications can protect resources & data with permissions  Applications statically declare permissions  Required of components interacting.
Application Fundamentals. See: developer.android.com/guide/developing/building/index.html.
1 Working with the Android Services Nilanjan Banerjee Mobile Systems Programming University of Arkansas Fayetteville, AR
APPFORUM2014 Helping the developer community build next-generation, multi-platform apps. SCHAUMBURG, ILLINOIS | SEPTEMBER 8-10.
Emerging Platform#4: Android Bina Ramamurthy.  Android is an Operating system.  Android is an emerging platform for mobile devices.  Initially developed.
CS378 - Mobile Computing Anatomy of an Android App and the App Lifecycle.
Intro to Android Programming George Nychis Srinivasan Seshan.
 Understanding an activity  Starting an activity  Passing information between activities  Understanding intents  Understanding the activity lifecycle.
© Keren Kalif Intro to Android Development Written by Keren Kalif, Edited by Liron Blecher Contains slides from Google I/O presentation.
Software Architecture of Android Yaodong Bi, Ph.D. Department of Computing Sciences University of Scranton.
ANDROID SERVICES Peter Liu School of ICT, Seneca College.
Mobile Computing Lecture#08 IntentFilters & BroadcastReceivers.
Broadcast Receiver Android Club Agenda Broadcast Receiver Widget.
Broadcast intents.
Cosc 5/4730 Introduction: Threads, Android Activities, and MVC.
Rajab Davudov. Agenda Eclipse, ADT and Android SDK APK file Fundamentals – Activity – Service – Content Provider – Broadcast Receiver – Intent Hello World.
CSE 403 Section: SRS and Use Cases January 14, 2010.
Using Intents to Broadcast Events Intents Can be used to broadcast messages anonymously Between components via the sendBroadcast method As a result Broadcast.
Cosc 5/4730 Broadcast Receiver. Broadcast receiver A broadcast receiver (short receiver) – is an Android component which allows you to register for system.
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
Mobile Application Development using Android Lecture 2.
DUE Hello World on the Android Platform.
CS378 - Mobile Computing Intents.
16 Services and Broadcast Receivers CSNB544 Mobile Application Development Thanks to Utexas Austin.
1 Announcements Homework #2 due Feb 7 at 1:30pm Submit the entire Eclipse project in Blackboard Please fill out the when2meets when your Project Manager.
Copyright© Jeffrey Jongko, Ateneo de Manila University Of Activities, Intents and Applications.
Asynchronous Tasks with Android Anthony Dahanne, Ing Jr identi.ca/twitter blog : Android Montreal, le 01/09/2010.
CS378 - Mobile Computing Intents. Allow us to use applications and components that are part of Android System – start activities – start services – deliver.
Understand applications and their components activity service broadcast receiver content provider intent AndroidManifest.xml.
Working in the Background Radan Ganchev Astea Solutions.
Services 1 CS440. What is a Service?  Component that runs on background  Context.startService(), asks the system to schedule work for the service, to.
Activity Android Club Agenda Hello Android application Application components Activity StartActivity.
Mobile Programming Midterm Review
Mobile Application Security on Android Originally presented by Jesse Burns at Black Hat
Mobile Development. Name: Saurabh Software Developer.
Activities Димитър Н. Димитров Astea Solutions AD.
Recap of Part 1 Terminology Windows FormsAndroidMVP FormActivityView? ControlViewView? ?ServiceModel? Activities Views / ViewGroups Intents Services.
Technische Universität München Services, IPC and RPC Gökhan Yilmaz, Benedikt Brück.
Introduction to Android OS Димитър Н. Димитров Astea Solutions AD.
Mobile Software Development for Android - I397 IT COLLEGE, ANDRES KÄVER, WEB:
David Sutton SMS TELEPHONY IN ANDROID. OUTLINE  This week’s exercise, an SMS Pub Quiz  Simulating telephony on an emulator  Broadcast Intents and broadcast.
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.
Developing Android Services. Objectives Creating a service that runs in background Performing long-running tasks in a separate thread Performing repeated.
Mobile Software Development for Android - I397
Asynchronous Task (AsyncTask) in Android
Reactive Android Development
Broadcast receivers.
CS371m - Mobile Computing Services and Broadcast Receivers
Reactive Android Development
Instructor: Mazhar Hussain
CSE 486/586 Distributed Systems Android Programming --- 2
Activities and Intents
Android Mobile Application Development
Reactive Android Development
Broadcast Receivers A Android Component where you can register for system or application events, receive and react to broadcast intent. Each broadcast.
Mobile Software Development for Android - I397
Android Programming Lecture 9
Developing Android Services
Application Development A Tutorial Driven Course
Android Developer Fundamentals V2 Lesson 5
Emerging Platform#3 Android & Programming an App
Mobile Programming Broadcast Receivers.
Presentation transcript:

Android intro Building UI #1: interactions

AndroidManifest.xml permissions 2

Application Global entry point (*except ContentProvider) Per-process singleton Activity.getApplication() Service.getApplication() Context.getApplicationContext() (+cast) 3

Service Long-running off-UI tasks Runs in UI thread Must be stopped =>IntentService to the rescue! (check sources) Often used with AlarmManager for scheduled operations Might be bound to Activity lifecycle 4

BroadcastReceiver onReceive() React to some intents Broadcast to all receivers Special case – OrderedBroadcast Static in manifest or dynamic via registerReceiver/unregisterReceiver 5

Activity - extras getIntent().getXXXExtra() Bundle b = getIntent().getExtras() Bundle.getString() Bundle.putString()/putInt()/etc startActivityForResult()/onResult() 6

Activity - lifecycle onCreate()/onDestroy() (*not guaranteed) onResume()/onPause() onStart()/onStop() onConfigurationChanged() onSaveInstanceState() 7

Homework – translator app Enter word screen Results screen (with option to re-query) EditText Spinner->TextView+ListView+BaseAdapter AsyncTask! 8

AsyncTask doInBackground()/onPostExecute() onPreExecute() Not bound to lifecycle (fixed in loaders) Callback-based (don’t use.get()!) 9