Android UI, and Networking. Can do most networking on Android Bluetooth only on 2.0, Not supported with version 1.6.

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.
Bruce Scharlau, University of Aberdeen, 2012 Networking for Mobiles Mobile Computing Some slides from MobEduNet This covers HTTP in detail, and mentions.
Bruce Scharlau, University of Aberdeen, 2010 Android and Location Mobile Computing Unless otherwise stated, images are from android sdk.
Bruce Scharlau, University of Aberdeen, 2010 Android UI, and Networking Mobile Computing Based on android-sdk_2.2 Unless otherwise stated, images are from.
Ando-it-yourself droid Praveen Kumar Pendyala. Outline Brief intro to the Droid developement Setting up the Life saviors - Development tools Hello Droid.
Android OS : Core Concepts Dr. Jeyakesavan Veerasamy Sr. Lecturer University of Texas at Dallas
CE881: Mobile and Social Application Programming Simon M. Lucas Menus and Dialogs.
Programming with Android: Widgets and Events Luca Bedogni Marco Di Felice Dipartimento di Scienze dell’Informazione Università di Bologna.
All About Android Introduction to Android 1. Creating a New App “These aren’t the droids we’re looking for.” Obi-wan Kenobi 1. Bring up Eclipse. 2. Click.
 User Interface - Raeha Sandalwala.  Introduction to UI  Layouts  UI Controls  Menus and ‘Toasts’  Notifications  Other interesting UIs ◦ ListView.
Filip Debelić What is it? Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google Android,
1 Frameworks. 2 Framework Set of cooperating classes/interfaces –Structure essential mechanisms of a problem domain –Programmer can extend framework classes,
ANDROID OPERATING SYSTEM Guided By,Presented By, Ajay B.N Somashekar B.T Asst Professor MTech 2 nd Sem (CE)Dept of CS & E.
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
INTERNATIONAL SUMMER ACADEMIC COURSE UNIVESITY OF NIS ISAC – Android programming.
Android Fragments A very brief introduction Android Fragments1.
Chien-Chung Shen Manifest and Activity Chien-Chung Shen
Better reference the original webpage :
Intro to Android Programming George Nychis Srinivasan Seshan.
Android Boot Camp for Developers Using Java, Comprehensive: A Guide to Creating Your First Android Apps Chapter 9: Customize! Navigating with a Master/Detail.
About me Yichuan Wang Android Basics Credit goes to Google and UMBC.
Android: versions Note that: Honeycomb (Android v3.0) A tablet-only release Jelly Bean (Android v4.1) Released on July 09, 2012.
 Understanding an activity  Starting an activity  Passing information between activities  Understanding intents  Understanding the activity lifecycle.
CS5103 Software Engineering Lecture 08 Android Development II.
© Keren Kalif Intro to Android Development Written by Keren Kalif, Edited by Liron Blecher Contains slides from Google I/O presentation.
ANDROID UI – FRAGMENTS. Fragment  An activity is a container for views  When you have a larger screen device than a phone –like a tablet it can look.
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.
Prerequisites Android Studio – io.html io.html Java.
Copyright© Jeffrey Jongko, Ateneo de Manila University Android.
Basic Android Tutorial USF’s Association for Computing Machinery.
ANDROID Presented By Mastan Vali.SK. © artesis 2008 | 2 1. Introduction 2. Platform 3. Software development 4. Advantages Main topics.
This work is licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit
Android for Java Developers Denver Java Users Group Jan 11, Mike
Mobile Computing Lecture#11 Adapters and Dialogs.
INTRODUCTION TO ANDROID. Slide 2 Application Components An Android application is made of up one or more of the following components Activities We will.
Android – Fragments L. Grewe.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
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.
Copyright© Jeffrey Jongko, Ateneo de Manila University Custom ListAdapters.
HW#9 Clues CSCI 571 Fall, HW#9 Prototype
ANDROID APPLICATION DEVELOPMENT. ANDROID DEVELOPMENT DEVELOPER.ANDROID.COM/INDEX.HTML THE OFFICIAL SITE FOR ANDROID DEVELOPERS. PROVIDES THE ANDROID SDK.
Recap of Part 1 Terminology Windows FormsAndroidMVP FormActivityView? ControlViewView? ?ServiceModel? Activities Views / ViewGroups Intents Services.
1 Android Development Lean and mean introduction Based on a presentation by Mihail L. Sichitiu.
© 2016 Cengage Learning®. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part. Android Boot Camp.
Class on Fragments & threads. Fragments fragment is a modular section of an activity, which has its own lifecycle, receives its own input events, and.
CHAPTER 4 Fragments ActionBar Menus. Explore how to build applications that use an ActionBar and Fragments Understand the Fragment lifecycle Learn to.
The Ingredients of Android Applications. A simple application in a process In a classical programming environment, the OS would load the program code.
Android Fragments. Slide 2 Lecture Overview Getting resources and configuration information Conceptualizing the Back Stack Introduction to fragments.
INTRODUCTION TO ANDROID. Slide 2 Introduction I take a top-down approach to describing an application’s anatomy.
Why Learn Android? Largest installation base of any operating system Over 20,000 Android devices exist Businesses will likely move more to device-based.
Android Mobile Application Development
Lab7 – Appendix.
Android Studio, Android System Basics and Git
Mobile Application Development BSCS-7 Lecture # 6
Android.
Activities and Intents
ANDROID UI – FRAGMENTS UNIT II.
CS323 Android Getting Started
Application Development A Tutorial Driven Course
Android Developer Fundamentals V2 Lesson 1
Android Topics Custom ArrayAdapters
Software Engineering for Internet Applications
Activities and Intents
Android Developer Fundamentals V2
Android Topics Threads and the MessageQueue
Android Programming Tutorial
Activities and Intents
Introduction to Android
Presentation transcript:

Android UI, and Networking

Can do most networking on Android Bluetooth only on 2.0, Not supported with version 1.6

Bruce Scharlau, University of Aberdeen, 2009 Android has many components Bluetooth and USB drivers now gone from kernel XMPP gone from application framework

All layouts are hierarchical

All screens are derived from view

Hierarchical views can include similar groups

Children do as told in Android TextView is child of parent viewgroup and fills, or wraps content

There are many types of controls in Android

Lists can be handled via adapters and filled from xml file of values

Table layout allows for just that with data

Use the hierarchy viewer tool to optimize and debug interface

Views are tied to activities (screens) in Android One class per activity, and screen, which may be done as xml file

One layout per activity (class) main.xml goes with AuctionStart list.xml goes with ListItems hit_server.xml goes with HitServer

Xml layout file details components Hierarchy of views as noted earlier

Xml layout inflated in onCreate Set value of inflated object INCOMPLETE CODE New view items and attached to xml values

Android emulator runs as ‘localhost’, ie ‘loopback’ Emulator is at so need to call service at IP address of service to test network apps on developer machine

Bruce Scharlau, University of Aberdeen, 2009 Activity is one thing you can do

Apps move through states during lifecycle onPause is last state to preserve state and cleanup before app possibly destroyed

Handler class provides access to running thread for main UI Handler has Looper which contains MessageQueue that can be called and return objects to UI thread

Handler puts thread response into UI thread

Method returns string from network Bruce Scharlau, University of Aberdeen, 2009 Log output for debugging, etc Simple method to call URL and return value

Might need robust calls to network Put heavy lifting work in HTTPRequestHelper so accessible to other classes Handler waits for message and then returns

Parse xml response and populate Java bean instance Bruce Scharlau, University of Aberdeen, 2009

Add permissions to manifest for connection and network Bruce Scharlau, University of Aberdeen, 2009

End of Lecture