CSE 486/586 Distributed Systems Android Programming --- 2

Slides:



Advertisements
Similar presentations
Google Android Introduction to Mobile Computing. Android is part of the build a better phone process Open Handset Alliance produces Android Comprises.
Advertisements

Android Application Development Tutorial. Topics Lecture 6 Overview Programming Tutorial 3: Sending/Receiving SMS Messages.
CE881: Mobile and Social Application Programming Simon M. Lucas Layouts.
CSE 486/586, Spring 2014 CSE 486/586 Distributed Systems The Internet in 2 Hours: The Second Hour Steve Ko Computer Sciences and Engineering University.
CSE116: Introduction to Computer Science 2 Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
Cosc 4730 Brief return Sockets And HttpClient And AsyncTask.
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems Logical Time Steve Ko Computer Sciences and Engineering University at Buffalo.
1 Mobile Software Development Framework: Android Activity, View/ViewGroup, External Resources, Listener 10/9/2012 Y. Richard Yang.
Intro to Android Programming George Nychis Srinivasan Seshan.
CSE 486/586 CSE 486/586 Distributed Systems PA Best Practices Steve Ko Computer Sciences and Engineering University at Buffalo.
App Windows UI object Windows object App code Windows object.
© Keren Kalif Intro to Android Development Written by Keren Kalif, Edited by Liron Blecher Contains slides from Google I/O presentation.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Concurrency in Android with.
Software Architecture of Android Yaodong Bi, Ph.D. Department of Computing Sciences University of Scranton.
Networking: Part 2 (Accessing the Internet). The UI Thread When an application is launched, the system creates a “main” UI thread responsible for handling.
CSE 486/586, Spring 2014 CSE 486/586 Distributed Systems The Internet in 2 Hours: The First Hour Steve Ko Computer Sciences and Engineering University.
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.
Networking Android Club Networking AsyncTask HttpUrlConnection JSON Parser.
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems Distributed Shared Memory Steve Ko Computer Sciences and Engineering University at Buffalo.
Working in the Background Radan Ganchev Astea Solutions.
CS378 - Mobile Computing Responsiveness. An App Idea From Nifty Assignments Draw a picture use randomness Pick an equation at random Operators in the.
Android networking 1. Network programming with Android If your Android is connected to a WIFI, you can connect to servers using the usual Java API, like.
CSE 486/586, Spring 2012 CSE 486/586 Distributed Systems Wrap-up Steve Ko Computer Sciences and Engineering University at Buffalo.
NOAA Weather Patrick Wolfram. What it does Allows user to specify a zip code Performs HTTP GET requests on noaa.gov for the specified zip code Displays.
ALAA M. ALSALEHI SOFTWARE ENGINEER AT IUG Multithreading in Android.
App Theming & PVL Direct3DDirectWriteDirect2DMediaTouch.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Global States Steve Ko Computer Sciences and Engineering University at Buffalo.
Android Threads. Threads Android will show an “ANR” error if a View does not return from handling an event within 5 seconds Or, if some code running in.
CSE 486/586 CSE 486/586 Distributed Systems Android Programming Steve Ko Computer Sciences and Engineering University at Buffalo.
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
MOBILE COMPUTING D10K-7D02 MC05: Android UI Design Dr. Setiawan Hadi, M.Sc.CS. Program Studi S-1 Teknik Informatika FMIPA Universitas Padjadjaran.
Mobile Development. Name: Saurabh Software Developer.
Recap of Part 1 Terminology Windows FormsAndroidMVP FormActivityView? ControlViewView? ?ServiceModel? Activities Views / ViewGroups Intents Services.
CSE 486/586, Spring 2014 CSE 486/586 Distributed Systems Android Programming Steve Ko Computer Sciences and Engineering University at Buffalo.
CSE 486/586 CSE 486/586 Distributed Systems Global States Steve Ko Computer Sciences and Engineering University at Buffalo.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems The Internet in 2 Hours: The First Hour Steve Ko Computer Sciences and Engineering University.
Introduction to Android OS Димитър Н. Димитров Astea Solutions AD.
CSE 486/586, Spring 2014 CSE 486/586 Distributed Systems Logical Time Steve Ko Computer Sciences and Engineering University at Buffalo.
Android intro Building UI #1: interactions. AndroidManifest.xml permissions 2.
CHAPTER 6 Threads, Handlers, and Programmatic Movement.
CSE 486/586 CSE 486/586 Distributed Systems Time and Synchronization Steve Ko Computer Sciences and Engineering University at Buffalo.
USING ANDROID WITH THE INTERNET. Slide 2 Lecture Summary Getting network permissions Working with the HTTP protocol Sending HTTP requests Getting results.
Developing Android Services. Objectives Creating a service that runs in background Performing long-running tasks in a separate thread Performing repeated.
CSE 486/586, Spring 2013 CSE 486/586 Distributed Systems Consistency Steve Ko Computer Sciences and Engineering University at Buffalo.
Introduction to Android Programming
H W #9 Clues CSCI 571 Spring, H W# 9 P rototype YouTube Link :
CSE 486/586 Distributed Systems Reliable Multicast --- 1
Steve Ko Computer Sciences and Engineering University at Buffalo
Small talk with the UI thread
Asynchronous Task (AsyncTask) in Android
Reactive Android Development
CSE 486/586 Distributed Systems Failure Detectors
Android Runtime – Dalvik VM
Steve Ko Computer Sciences and Engineering University at Buffalo
CS240: Advanced Programming Concepts
Steve Ko Computer Sciences and Engineering University at Buffalo
Android Mobile Application Development
CSE 486/586 Distributed Systems Global States
CSE 486/586 Distributed Systems Time and Synchronization
CS371m - Mobile Computing Responsiveness.
Android Topics Asynchronous Callsbacks
Android Developer Fundamentals V2
Lecture 6: Process, Thread, Task
CSE 486/586 Distributed Systems Global States
CSE 486/586 Distributed Systems Wrap-up
Cosc 5/4730 EmojiCompat library..
Steve Ko Computer Sciences and Engineering University at Buffalo
Steve Ko Computer Sciences and Engineering University at Buffalo
Android Threads Dimitar Ivanov Mobile Applications with Android
CSE 486/586 Distributed Systems Mid-Semester Overview
Presentation transcript:

CSE 486/586 Distributed Systems Android Programming --- 2 Steve Ko Computer Sciences and Engineering University at Buffalo

Recap Three components of running an Android app OS responsibilities? App responsibilities AndroidManifest.xml OS responsibilities? Event delivery and callback calls App responsibilities? Implementing callbacks and the app logic AndroidManifest.xml? Declare its capabilities (e.g., permissions) Register callbacks Componentized app logic

Today More code example setContentView() findViewById(), the R class, and layouts EditText.setOnKeyListener() & OnKeyListener() Displaying text on a TextView Componentized Main (UI) thread vs. other threads No long-running operation on the UI thread AsyncTask onPreExecute(), doInBackground(), onPostExecute(), onProgressUpdate() (which runs in the UI thread) SERIAL_EXECUTOR vs. THREAD_POOL_EXECUTOR The # limit on THREAD_POOL_EXECUTOR

CSE 486/586 Administrivia PA 2 will be out soon. Please use Piazza; all announcements will go there. Please come to my office during the office hours! Give feedback about the class, ask questions, etc.