Mobile Programming Midterm Review

Slides:



Advertisements
Similar presentations
Android Application Development Tutorial. Topics Lecture 6 Overview Programming Tutorial 3: Sending/Receiving SMS Messages.
Advertisements

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 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.
Manifest File, Intents, and Multiple Activities. Manifest File.
The Activity Class 1.  One application component type  Provides a visual interface for a single screen  Typically supports one thing a user can do,
@2011 Mihail L. Sichitiu1 Android Introduction Hello Views Part 1.
@2011 Mihail L. Sichitiu1 Android Introduction Application Fundamentals.
© 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.
Mobile Programming Lecture 9 Bound Service, Location, Sensors, IntentFilter.
Mobile Computing Lecture#08 IntentFilters & BroadcastReceivers.
Android development basics Introduction,Structure,Development Boncho Valkov.Net Developer.
Broadcast Receiver Android Club Agenda Broadcast Receiver Widget.
Cosc 5/4730 Introduction: Threads, Android Activities, and MVC.
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 Programming Lecture 6
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.
1 Mobile Software Development Framework: Android 2/28/2011 Y. Richard Yang.
10/10/2015 E.R.Edwards 10/10/2015 Staffordshire University School of Computing Introduction to Android Overview of Android System Android Components Component.
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.
Mobile Programming Lecture 5 Composite Views, Activities, Intents and Filters.
Cosc 5/4730 Android Communications Intents, callbacks, and setters.
ANDROID L. Grewe Components  Java Standard Development Kit (JDK) (download) (latest version)  AndroidStudio.
Cosc 4730 Android Fragments. Fragments You can think of a fragment as a modular section of an activity, which has its own lifecycle, receives its own.
Activity Android Club Agenda Hello Android application Application components Activity StartActivity.
1 CMSC 628: Introduction to Mobile Computing Nilanjan Banerjee Introduction to Mobile Computing University of Maryland Baltimore County
Applications with Multiple Activities. Most applications will have more than one activity. The main activity is started when the application is started.
Working with Multiple Activities. Slide 2 Introduction Working with multiple activities Creating multiple views Introduction to intents Passing data to.
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
Introducing Intents Intents Bind application components and navigate between them Transform device into collection of interconnected systems Creating a.
Android Application Lifecycle and Menus
Intents 1 CS440. Intents  Message passing mechanism  Most common uses:  starting an Activity (open an , contact, etc.)  starting an Activity.
1 Android Development Lean and mean introduction Based on a presentation by Mihail L. Sichitiu.
Activity ANDROID CLUB Сегодня  Основные компоненты Android  Activity  Layout для Activity  Создание Activity  Launcher Activity  Activity.
Lecture 2: Android Concepts
Technische Universität München Services, IPC and RPC Gökhan Yilmaz, Benedikt Brück.
Activities and Intents Chapter 3 1. Objectives Explore an activity’s lifecycle Learn about saving and restoring an activity Understand intents and how.
Speech Service & client(Activity) 오지영.
Mobile Programming Lecture 4 Resources, Selection, Activities, Intents.
Intents and Broadcast Receivers Dr. David Janzen Except as otherwise noted, the content of this presentation is licensed under the Creative Commons Attribution.
Android intro Building UI #1: interactions. AndroidManifest.xml permissions 2.
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 Flag Quiz app tests your ability to correctly identify 10 flags from various countries and territories.
Intents and Broadcast Receivers
Android Mobile Applications Course Introduction
Lecture 2: Android Concepts
several communicating screens
Broadcast receivers.
CS371m - Mobile Computing Services and Broadcast Receivers
Android Introduction Camera.
Android Programming Lecture 9
Developing Android Services
Mobile Software Development Framework: Android
Android Topics Asynchronous Callsbacks
Activities and Intents
Android Developer Fundamentals V2 Lesson 5
Objects First with Java
Activities and Intents
SE4S701 Mobile Application Development
Lecture 2: Android Concepts
Activities and Fragments
Chapter 5 Your Second Activity.
CA16R405 - Mobile Application Development (Theory)
Presentation transcript:

Mobile Programming Midterm Review

Agenda Layouts, widgets, toasts, and eventHandling Debuggings Resources, selections, activities, explicit intent Composite Views, activities, and implicit intent and filter Fragments, permissions, and BroadcastReceiver Dialogs, Menus, SharedPreferences. Notifications, Services, and AsyncTasks. Bound Services, location, sensors, and IntentFilters ContentProviders

Layouts Linear, Relative, Table, Tab, FrameLayout. Draw a picture based on the layout.xml

Widgets TextViews, EditText, Button, SeekBar, RadioGroup, etc. Attributes Id Layout_width Layout_height textSize inputType gravity

Toast and EvenHandling When and how to use Toast? Toast.makeText(context, “text”, Toast.LENGTH_SHORT).show(). How to handle ClickEvent.

Selections ListView What is the difference bewteen the two. Spinners How to populate the spinner Statically and dynamically ArrayAdapter setAdapter(adapter) ListView What is the difference bewteen the two. onItemSelectedListener onItemSelectedListern and onItemClickListener

Activity Activity Lifecycle The sequence of methods being called when a user starts the activity. The sequence of methods being called when the activity loses focus. Why do you need to override these lifecycle methods onPause(), onResume(), onStop(), onDestroy()

Pass Data Between Activities Bundle Check if the bundle is null! Bundle bundle = new Bundle(); bundle.putString("fname","John"); bundle.putString("lname", "Doe"); bundle.putInt("age", 18); intent.putExtras(bundle); startActivity(intent);

Explicit Intent vs Implicit Intent When do you want to use explicit intent When do you use implicit intent Intent Filters

Fragments Removing and Replacing fragments Fragments Neither a view nor activity One activity can have multiple fragments OnCreateView() returns a view. How to pass data between activity and fragment SetArguments(bundle) and getArguments() Class public member variables Removing and Replacing fragments

Permissions and BroadcastReceiver When should you use BroadcastReceivers? Override the onReceive() method How to statistically register your BroadcastReceiver? How to dynamically register your BroadcastReceiver? When do your register When do your unregister

Dialogs and Menus SharedPreference Dialogs Menu optionMenu contextMenu SharedPreference Why do you use sharedPreference How to access to your sharedPreference

Notifications What is a notification When do you use notifications?

Service What is a service? Service Lifecycle Perform a longer-running operation Running in the background The service and the UI activity share the same process Service Lifecycle onCreate(), onStartCommand(), onDestroy(), etc Service and IntentService. When do you use which?

Service Messenger is parcelable, so it can be put in a bundle. How to communicate between service and activity Broadcast Intent Pending Result (onActivityResult()) Messenger Messenger is parcelable, so it can be put in a bundle. Override handleMessage(Message msg)

Async Task Multi-threading Allows you to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers. Easy the use of main UI thread Publish the result to the UI when it is needed. What is the difference between using service and Async task?

Async Task Multi-threading Allows you to perform background operations and publish results on the UI thread without having to manipulate threads and/or handlers. Easy the use of main UI thread Publish the result to the UI when it is needed. What is the difference between using service and Async task?

Bound Service What is a bound service and how to use it. Ibinder Messenger

StartActivity and GetResult startActivityForResult(intent, PICK_REQUEST); protected void onActivityResult(int requestCode, int resultCode, Intent data) { if (requestCode == PICK_REQUEST) { if (resultCode == RESULT_OK) { /* result is OK! */ }

Midterm Exam Content provider vs sharedPreference? Permissions. When to use a content provider? ContentResolver Content provider vs sharedPreference? Permissions. Protect your content provider because By default, anyone can read from or write to your content provider. <provider> Android:readPermission=edu.tian.provider.permission.READ Android:writePermission=edu.tian.provider.permission.WRITE <permission android:name=edu.tian.provider.permission.READ>

Content Provider Short answers Debugging Development Design Given a code example, find errors and fix them Development Given a code example, complete the example. Design Extra Credits

Debugging Development Design

References The Busy Coder's Guide to Android Development - Mark Murphy Android Developers The Mobile Lab at Florida State University