Lab 1 (Reading Sensors & The Android API) Week 3
|
|
|
- Edgar Ray
- 10 years ago
- Views:
Transcription
1 ECE155: Engineering Design with Embedded Systems Winter 2013 Lab 1 (Reading Sensors & The Android API) Week 3 Prepared by Kirill Morozov version 1.1 Deadline: You must submit the lab to the SVN repository and be prepared to demonstrate Lab 1 to a TA by the start of your assigned Lab 2 session. The best way to demo is during a lab session, but any earlier time where you can convince a TA to watch is OK too. 1 Objective The objectives of this week s lab are for you to 1) familiarize yourself with the Android phones that you will be developing for, and 2) learn how to read the sensors on these phones. During this lab, you will write a simple Android application that reads the various sensors available on the phone and graphs them. Your code will initialize an Android Activity; accept the values from the phone s sensors; and display these values on the screen. The steps in this lab will be: 1. Use the Eclipse IDE and the Android API to create a basic Android application. 2. Add items to the user interface for your Android application. 3. Create event handlers for a variety of sensors and make them modify the user interface. 4. Include a widget to graph a history of sensor values. Deliverables. For this lab, you must: Create a system that will let you display the output from all the sensors that you are monitoring. Display each sensor s current value upon event reception. (See Figure 1, field Acceleration (linear) (m/s 2 ).) Since the reading from the sensors will change quickly, you must also display the all-time highest (in absolute value) readings from each sensor so that we can see concrete numbers. (Field Record Acceleration (linear) (m/s 2 ) in Figure 1.) Ensure that the data you display is readable, accessible to the user, and that it does not vanish off the edge of the screen. How you do this is up to you. For instance, you can enable scrolling, or simply format the data effectively. Any functional system is acceptable. 1
2 2 Phases of the lab Figure 1: An example of a completed Lab 1. This lab contains the following steps: 1. Create infrastructure to display raw data to the user. 2. Create handlers to read and record sensor values. 3. Test. 4. Demonstrate. 3 Create infrastructure to display data to the user Before we continue, we ll explain the structure of an Android application and about JavaDoc. 3.1 Digression 1: About the Android application structure Even the empty Android project (e.g. from Lab 0) contains folders and files. Here s what they do. The src folder contains all of your.java files for the project. Here you will add the code you ll write. The empty project already contains a Hello World activity, MainActivity. The gen folder contains automatically generated.java files. Of particular interest is the R.java file which mirrors the constants and ids you will define in the project s xml. Do not edit these files directly. Your changes will be lost when you build your code next. 2
3 The bin folder is the output directory for the project. Compiled files appear here. The libs folder contains your private libraries. (You can ignore this.) The res folder contains application resources, such as drawable files, layout files, and string values. The res/layout folder is important. Each xml file in that folder describes the layout of controls in a single activity in your application. About Activities. The fundamental building block of an Android application is the Activity. Activities represent screens in your application. When a screen gains focus, Android activates the appropriate activity, which may then interact with the user. When the user switches to a different screen, Android disables the activity, preserving the program state. The new Android application wizard will create a blank Main activity for you. You can work exclusively with that activity, and you won t need to create any new activities for these labs. Random testing-related tip. If you did not change anything in your code since the last time you launched your application, Eclipse will not re-upload or restart your application when you click Run. Instead, it will just make your application active again. If you are trying to reset your application s state, you will either need to build that option in yourself, or force Eclipse to recompile your application. 3.2 Digression 2: Helping you help yourself: On JavaDoc For the next step, the rest of the labs, and life in general, you need to learn how to navigate JavaDocs. JavaDoc is documentation automatically extracted from Java programs while these programs were being developed, developers and technical writers added JavaDoc documentation in the form of specially formatted comments in their source code. Android s JavaDoc documentation is thorough and easy to read. It is at android.com/reference/packages.html. If you installed the documentation when you installed the Android SDK, you can also reach the documentation from Eclipse. To do this, hover the mouse over something that you want documentation about. A yellow box will pop up; click on it. Finally, click the right-most button that appears at the bottom of this box. See figure 2 for an example. Keep in mind that you can only hover over something that is defined by the Android SDK. If you try to hover over one of your own classes or variables, Eclipse will look for the JavaDoc attached to your code, and will not find it (unless you add it yourself.) 3.3 Back to displaying data to the user The immediate goal of this exercise is to display information to the user. The best way to do that is by creating labels and modifying their contents programmatically. We ll walk you through changing the content of the Hello World label from Lab 0. The Main activity contains the Hello World label. To reference this label from your code, you need to give it a ID. Here s how. 3
4 Figure 2: Tool-tip you ll see when mousing over a class name. 1. Open the xml file located in [your project] > res > layout. 2. Switch to the xml tab at the bottom of the editor. 3. Look for the xml tag <TextView> and add the attribute android:id="@+id/label1". In the Android API, all user-visible controls are sub-classes of android.view.view. You can get a reference to the Hello World label by calling findviewbyid() in your Activity with the label id (which you just added) as a parameter. The Android compilation system will add the ids to the R class. For instance, to find the label you just added above, you might call findviewbyid(r.id.label1). Labels are TextView objects. You can change the text of a label by calling TextView.setText(). You can just pass any String to TextView.setText(), and Android will automatically redraw the label with the new value. In particular, here s how to modify the Hello World label, after you ve followed the steps above. 1. Open MainActivity.java in [your project] > src > ca.uwaterloo.[your project]. 2. Insert the following two lines in the oncreate() method: TextView tv = (TextView) findviewbyid(r.id.label1); tv.settext("i ve replaced the label!"); Non-deliverable. You should now have an Android application where you can change the label. We are, however, going to take a step back and remove that label, replacing it with automaticallygenerated labels. 3.4 Adding more labels You ll need to create additional labels to display all the needed data. Of course, you could do this by hand : modify the layout xml for your activity directly, or use the graphical layout tool (double-click on the layout xml). This lab requires creating a lot of labels, and doing that by 4
5 hand is tedious and brittle (and will max out your possible lab 1 mark at 4/5). Computer scientists ruthlessly automate. Conveniently, the Android API lets you create views programmatically. Here s how to create one label and add it to a view. First, assign an id to the parent: Give the top-level layout tag (<RelativeLayout> in the auto-generated project) in your xml an ID, like you did for the Hello World label. A layout is a special kind of view that can itself contain views (i.e. have child views). Then, in your Activity s oncreate() method: 1. Get a reference to the top-level layout in your activity by using findviewbyid. Cast the result to RelativeLayout. 2. Create a new TextView, e.g. TextView tv1 = new TextView(getApplicationContext()); 3. Set the text of tv1, as above. 4. Add tv1 to the layout by calling addview(tv1) on the top-level layout. You can do this several times. We recommend creating a method for adding a label. RelativeLayout versus LinearLayout. You ll find that after you follow the above directions and add a number of labels, your TextViews all run into each other. It is possible to configure the TextView objects to not step over each other. But it s easier to change RelativeLayout for LinearLayout, which automatically puts its contents in non-overlapping positions. 1. In activity main.xml, change RelativeLayout to LinearLayout. You have to do that in both the <RelativeLayout> and </RelativeLayout> tags. 2. In MainActivity.java, change the line to 3. Add the line RelativeLayout l = (RelativeLayout)findViewById(R.id.main_activity); LinearLayout l = (LinearLayout)findViewById(R.id.main_activity); l.setorientation(linearlayout.vertical); which will stack all of the TextView objects vertically rather than horizontally. Deliverable. Add labels for all of the sensors that we ll record in the next stage. Your Android app should now have a number of labels on the screen, which you should have created programmatically. But you might be displaying more labels than will fit on the screen. 5
6 3.5 Scrolling It is easy to implement a scrollbar so that the user can look at all of the labels that you ve added. 1. Go back to activity main.xml, where you should currently have a top-level LinearLayout. Before the LinearLayout, introduce a ScrollView: <ScrollView xmlns:android=" android:id="@+id/scroll" android:layout_width="fill_parent" android:layout_height="wrap_content"> and close the tag after the LinearLayout: </ScrollView> 2. Change the attribute android:layout_height s value from match_parent to wrap_content. Deliverable. If you have more content than fits on the screen, make sure that all of the content is somehow viewable. 4 Create handlers to read and record sensor values Now that you can display data to the user, you need to manufacture data. For this lab, you ll need to get that data from the phone s sensors. A number of Android classes collaborate to allow you to read this data, including: The SensorManager. Manages the various sensors of the phone. Sensors. A software representation of the sensor hardware. You get references to specific instances of Sensors from the SensorManager. A SensorEventListener. One of your classes must implement this interface to receive events from the sensors. SensorEvents. Represents a single message from a single sensor. The documentation of the SensorEvent has an excellent explanation of the format that each sensor sends its values in. We ll walk you through how to read the values from the light sensor. You are responsible for reading the other values and for displaying them on the screen. 1. Implement a SensorEventListener to receive sensor events 1. class LightSensorEventListener implements SensorEventListener public void onaccuracychanged(sensor s, int i) {} 1 If you know what an inner class is, you can use one. But you might not want to. 6
7 public void onsensorchanged(sensorevent se) { if (se.sensor.gettype() == Sensor.TYPE_LIGHT) { // TODO se.values[0] contains the new value } } 2. Request the sensor manager: SensorManager sensormanager = (SensorManager) getsystemservice(sensor_service); 3. Request the light sensor: Sensor lightsensor = sensormanager.getdefaultsensor(sensor.type_light); 4. Create an instance of your new SensorEventListener and register it. SensorEventListener l = new LightSensorEventListener(); sensormanager.registerlistener(l, lightsensor, SensorManager.SENSOR_DELAY_NORMAL); This should now display the value of the light sensor, if you fill in the TODO line appropriately. Tip. You saw the C# syntax String.Format in ECE150. The corresponding Java syntax is: String s = String.format("(%f, %f, %f)", x, y, z); This will allow you to display (x, y, z) coordinate triples, which will be helpful. You may also want to not display 6 decimal places. I ll leave figuring out how to do that up to you. Use the Internet. Cleaning up after yourself. For many applications, it is appropriate to unregister sensor event listeners in the onpause() method of the main activity and reregister them in the onresume() method. Unregistering event listeners helps the phone conserve battery power. Unregistering event listeners is perhaps a good idea for this lab, but will cause havoc for Labs 2 and onward unless you stop the phone from going to sleep. We re not requiring that you unregister your event listeners. Deliverables. Your solution must display current sensor information for these sensors, as well as record values for all sensors but the light sensor. (TYPE LIGHT): The readings from the light intensity sensor. (TYPE ACCELEROMETER): The three components of linear acceleration from the accelerometer. (You may also display TYPE LINEAR ACCELERATION data as an alternative.) (TYPE MAGNETIC FIELD): The three components of the magnetic field sensor. (TYPE ROTATION VECTOR): The three components of phone s rotation vector. The record value is the highest absolute value. 7
8 Optional Extra (no marks). Implement a Clear button which resets the record values. 4.1 Digression 3: the accelerometer and gravity You will notice that when the phone is at rest, the accelerometer reports an z-acceleration of approximately 9.81 m/s 2. Surprisingly, this is not the acceleration due to gravity, but rather the acceleration due to the normal force. To understand why this is, we need to look at what exactly an accelerometer measures. A simple one-axis accelerometer consists of a test mass on a spring. When a force is applied to the case of the accelerometer, the mass moves until the force of the spring matches the force applied to the case. The degree to which the spring is stretched or compressed tells us how much force the case is experiencing. Figure 3: An accelerometer designed by the Archimedes Automated Assembly Planning Project at Sandia National Laboratory. Now, if we imagine this device in free-fall (don t drop your phones!), we can see that the spring will be at its rest position, while if the device was resting on the ground, the spring would be compressed under the weight of the test mass. Thus, an accelerometer measures acceleration relative to free-fall. In relativity theory, this acceleration is called proper acceleration. In Lab 2, you ll process the data from the accelerometer to measure footsteps. To get the absolute acceleration experienced by your phone, you will need to apply a low-pass filter to the acceleration data. Stay tuned for more information! 5 Graphing For the next labs, it is enormously useful to be able to see how the accelerometer reacts when you manipulate the phone in various ways. We have provided an implementation of a line graph view that will display sets of data points. You will find LineGraphView.java in the materials 8
9 directory of the course repository. Figure 1 shows what the graph view looks like. There is a bit of tearing in the screenshot of the graph because the process of taking a screenshot takes longer than one graph update. Using the LineGraphView The following sample code shows how to set up the LineGraphView that we ve provided. You are under no obligation to use this code; you can provide your own, if you want, or modify the code as you feel best. Note that you ll have to include an import statement for this class, since it belongs to the ca.uwaterloo.sensortoy package. Imports are like using statements in C# 2. Hitting Ctrl- Shift-O in Eclipse often fixes your imports. class MainActivity { LineGraphView graph; public void oncreate(bundle savedinstancestate) { //... code was already here... LinearLayout layout = ((LinearLayout)findViewById(R.id.layout)); } } graph = new LineGraphView(getApplicationContext(), 100, Arrays.asList("x", "y", "z")); layout.addview(graph); graph.setvisibility(view.visible); //... other code... Relevant parameters in the constructor call are 100 and Arrays.asList("a", "b", "c"). The 100 represents the number of samples to keep on the t-axis. The syntax Arrays.asList("x", "y", "z") is Java shorthand for providing a list of labels for the graph. Once you ve created your view, you can start adding data to it. Use methods addpoint() and purge(). purge() will clear the graph. addpoint() takes either an array or List of data points. The data must be in the same order as the labels that were passed into the constructor. We ll include an example of how to populate the graph below. Integrating the LineGraphView. up the LineGraphView as follows. public void onsensorchanged(sensorevent event) { graph.addpoint(event.values); } Now you have code to handle sensor changes. You can hook Deliverable. Plot the accelerometer data in graphical format
10 6 Test Your application should now display the current values of the sensors. You must display sensor values showing the three components of each sensor along with the lifetime maximum reading for these components. Also, you must display a graph of the accelerometer sensor readings over time. Your application should not crash or throw exceptions. 7 Demonstration Once you are satisfied that your design and implementation are working correctly, arrange a demonstration with a teaching assistant. You will need to have the TA complete an assessment form. All of the members of your laboratory group must sign the completed assessment form. Your grade will be based on the results of the project demonstration at the end of the laboratory session and an evaluation of how well your code follows engineering design principles. (We will run plagiarism detection software on the source code, which may subsequently lower your grade and trigger a Policy 71 case. Don t plagiarize!) Writing Good Code. Your application must follow good engineering design principles. You should therefore avoid: unnecessary code duplication; excessive use of variables the state of which you keep synchronized manually; forgetting to deallocate resources you have requested from the Android OS; and any other such design failures that make your application difficult to maintain or that step on the toes of other applications you share the device with. 8 Submission of project files Commit the Lab1 SSS XX files to your Subversion repository. The TAs will not mark labs that have not been submitted to SVN. The address is Patrick Lam if you can t commit to that address. 10
ELET4133: Embedded Systems. Topic 15 Sensors
ELET4133: Embedded Systems Topic 15 Sensors Agenda What is a sensor? Different types of sensors Detecting sensors Example application of the accelerometer 2 What is a sensor? Piece of hardware that collects
Tutorial #1. Android Application Development Advanced Hello World App
Tutorial #1 Android Application Development Advanced Hello World App 1. Create a new Android Project 1. Open Eclipse 2. Click the menu File -> New -> Other. 3. Expand the Android folder and select Android
Lab 0 (Setting up your Development Environment) Week 1
ECE155: Engineering Design with Embedded Systems Winter 2013 Lab 0 (Setting up your Development Environment) Week 1 Prepared by Kirill Morozov version 1.2 1 Objectives In this lab, you ll familiarize yourself
Getting Started: Creating a Simple App
Getting Started: Creating a Simple App What You will Learn: Setting up your development environment Creating a simple app Personalizing your app Running your app on an emulator The goal of this hour is
Arduino & Android. A How to on interfacing these two devices. Bryant Tram
Arduino & Android A How to on interfacing these two devices Bryant Tram Contents 1 Overview... 2 2 Other Readings... 2 1. Android Debug Bridge -... 2 2. MicroBridge... 2 3. YouTube tutorial video series
Android Application Development: Hands- On. Dr. Jogesh K. Muppala [email protected]
Android Application Development: Hands- On Dr. Jogesh K. Muppala [email protected] Wi-Fi Access Wi-Fi Access Account Name: aadc201312 2 The Android Wave! 3 Hello, Android! Configure the Android SDK SDK
Using the Android Sensor API
Using the Android Sensor API Juan José Marrón Department of Computer Science & Engineering [email protected] # Outline Sensors description: - Motion Sensors - Environmental Sensors - Positioning Sensors
IOIO for Android Beginners Guide Introduction
IOIO for Android Beginners Guide Introduction This is the beginners guide for the IOIO for Android board and is intended for users that have never written an Android app. The goal of this tutorial is to
Developing NFC Applications on the Android Platform. The Definitive Resource
Developing NFC Applications on the Android Platform The Definitive Resource Part 1 By Kyle Lampert Introduction This guide will use examples from Mac OS X, but the steps are easily adaptable for modern
How to Create an Android Application using Eclipse on Windows 7
How to Create an Android Application using Eclipse on Windows 7 Kevin Gleason 11/11/11 This application note is design to teach the reader how to setup an Android Development Environment on a Windows 7
How to develop your own app
How to develop your own app It s important that everything on the hardware side and also on the software side of our Android-to-serial converter should be as simple as possible. We have the advantage that
Android Concepts and Programming TUTORIAL 1
Android Concepts and Programming TUTORIAL 1 Kartik Sankaran [email protected] CS4222 Wireless and Sensor Networks [2 nd Semester 2013-14] 20 th January 2014 Agenda PART 1: Introduction to Android - Simple
Android Basics. Xin Yang 2016-05-06
Android Basics Xin Yang 2016-05-06 1 Outline of Lectures Lecture 1 (45mins) Android Basics Programming environment Components of an Android app Activity, lifecycle, intent Android anatomy Lecture 2 (45mins)
06 Team Project: Android Development Crash Course; Project Introduction
M. Kranz, P. Lindemann, A. Riener 340.301 UE Principles of Interaction, 2014S 06 Team Project: Android Development Crash Course; Project Introduction April 11, 2014 Priv.-Doz. Dipl.-Ing. Dr. Andreas Riener
Now that we have the Android SDK, Eclipse and Phones all ready to go we can jump into actual Android development.
Android Development 101 Now that we have the Android SDK, Eclipse and Phones all ready to go we can jump into actual Android development. Activity In Android, each application (and perhaps each screen
Android Java Live and In Action
Android Java Live and In Action Norman McEntire Founder, Servin Corp UCSD Extension Instructor [email protected] Copyright (c) 2013 Servin Corp 1 Opening Remarks Welcome! Thank you! My promise
Android Sensor Programming. Weihong Yu
Android Sensor Programming Weihong Yu Sensors Overview The Android platform is ideal for creating innovative applications through the use of sensors. These built-in sensors measure motion, orientation,
Android Environment SDK
Part 2-a Android Environment SDK Victor Matos Cleveland State University Notes are based on: Android Developers http://developer.android.com/index.html 1 2A. Android Environment: Eclipse & ADT The Android
Android Environment SDK
Part 2-a Android Environment SDK Victor Matos Cleveland State University Notes are based on: Android Developers http://developer.android.com/index.html 1 Android Environment: Eclipse & ADT The Android
Pedometer Project 1 Mr. Michaud / www.nebomusic.net
Mobile App Design Project Pedometer Using Accelerometer Sensor Description: The Android Phone has a three direction accelerometer sensor that reads the change in speed along three axis (x, y, and z). Programs
Mobile Application Development
Mobile Application Development (Android & ios) Tutorial Emirates Skills 2015 3/26/2015 1 What is Android? An open source Linux-based operating system intended for mobile computing platforms Includes a
Admin. Mobile Software Development Framework: Android Activity, View/ViewGroup, External Resources. Recap: TinyOS. Recap: J2ME Framework
Admin. Mobile Software Development Framework: Android Activity, View/ViewGroup, External Resources Homework 2 questions 10/9/2012 Y. Richard Yang 1 2 Recap: TinyOS Hardware components motivated design
Android Development Tutorial. Nikhil Yadav CSE40816/60816 - Pervasive Health Fall 2011
Android Development Tutorial Nikhil Yadav CSE40816/60816 - Pervasive Health Fall 2011 Database connections Local SQLite and remote access Outline Setting up the Android Development Environment (Windows)
Android Development. Marc Mc Loughlin
Android Development Marc Mc Loughlin Android Development Android Developer Website:h:p://developer.android.com/ Dev Guide Reference Resources Video / Blog SeCng up the SDK h:p://developer.android.com/sdk/
Sensors & Motion Sensors in Android platform. Minh H Dang CS286 Spring 2013
Sensors & Motion Sensors in Android platform Minh H Dang CS286 Spring 2013 Sensors The Android platform supports three categories of sensors: Motion sensors: measure acceleration forces and rotational
MMI 2: Mobile Human- Computer Interaction Android
MMI 2: Mobile Human- Computer Interaction Android Prof. Dr. [email protected] Mobile Interaction Lab, LMU München Android Software Stack Applications Java SDK Activities Views Resources Animation
Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months
Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months Our program is a practical knowledge oriented program aimed at making innovative and attractive applications for mobile
Android Programming. Høgskolen i Telemark Telemark University College. Cuong Nguyen, 2013.06.18
Høgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Cuong Nguyen, 2013.06.18 Faculty of Technology, Postboks 203, Kjølnes ring
Using Extensions or Cordova Plugins in your RhoMobile Application Darryn Campbell @darryncampbell
Using Extensions or Cordova Plugins in your RhoMobile Application Darryn Campbell @darryncampbell Application Architect Agenda Creating a Rho Native Extension on Android Converting a Cordova Plugin to
INTRODUCTION TO ANDROID CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 11 02/15/2011
INTRODUCTION TO ANDROID CSCI 4448/5448: OBJECT-ORIENTED ANALYSIS & DESIGN LECTURE 11 02/15/2011 1 Goals of the Lecture Present an introduction to the Android Framework Coverage of the framework will be
Android Sensors. CPRE 388 Fall 2015 Iowa State University
Android Sensors CPRE 388 Fall 2015 Iowa State University What are sensors? Sense and measure physical and ambient conditions of the device and/or environment Measure motion, touch pressure, orientation,
Objective. Android Sensors. Sensor Manager Sensor Types Examples. Page 2
Android Sensors Objective Android Sensors Sensor Manager Sensor Types Examples Page 2 Android.hardware Support for Hardware classes with some interfaces Camera: used to set image capture settings, start/stop
Creating a 2D Game Engine for Android OS. Introduction
Creating a 2D Game Engine for Android OS Introduction This tutorial will lead you through the foundations of creating a 2D animated game for the Android Operating System. The goal here is not to create
Advantages. manage port forwarding, set breakpoints, and view thread and process information directly
Part 2 a Android Environment SDK Victor Matos Cleveland State University Notes are based on: Android Developers http://developer.android.com/index.html 1 Android Environment: Eclipse & ADT The Android
directory to "d:\myproject\android". Hereafter, I shall denote the android installed directory as
1 of 6 2011-03-01 12:16 AM yet another insignificant programming notes... HOME Android SDK 2.2 How to Install and Get Started Introduction Android is a mobile operating system developed by Google, which
Using Sensors on the Android Platform. Andreas Terzis Android N00b
Using Sensors on the Android Platform Andreas Terzis Android N00b Hardware-oriented Features Feature Camera Sensor SensorManager SensorEventListener SensorEvent GeoMagneticField Description A class that
ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I)
ANDROID APPS DEVELOPMENT FOR MOBILE AND TABLET DEVICE (LEVEL I) Who am I? Lo Chi Wing, Peter Lecture 1: Introduction to Android Development Email: [email protected] Facebook: http://www.facebook.com/peterlo111
Frameworks & Android. Programmeertechnieken, Tim Cocx
Frameworks & Android Programmeertechnieken, Tim Cocx Discover thediscover world atthe Leiden world University at Leiden University Software maken is hergebruiken The majority of programming activities
Android Tutorial. Larry Walters OOSE Fall 2011
Android Tutorial Larry Walters OOSE Fall 2011 References This tutorial is a brief overview of some major concepts Android is much richer and more complex Developer s Guide http://developer.android.com/guide/index.html
2. Click the download button for your operating system (Windows, Mac, or Linux).
Table of Contents: Using Android Studio 1 Installing Android Studio 1 Installing IntelliJ IDEA Community Edition 3 Downloading My Book's Examples 4 Launching Android Studio and Importing an Android Project
Basics of Android Development 1
Departamento de Engenharia Informática Minds-On Basics of Android Development 1 Paulo Baltarejo Sousa [email protected] 2016 1 The content of this document is based on the material presented at http://developer.android.com
Developing Android Apps: Part 1
: Part 1 [email protected] www.dre.vanderbilt.edu/~schmidt Institute for Software Integrated Systems Vanderbilt University Nashville, Tennessee, USA CS 282 Principles of Operating Systems II Systems
Developing an Android App. CSC207 Fall 2014
Developing an Android App CSC207 Fall 2014 Overview Android is a mobile operating system first released in 2008. Currently developed by Google and the Open Handset Alliance. The OHA is a consortium of
ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android
Why Android? ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android Dr Dimitris C. Dracopoulos A truly open, free development platform based on Linux and open source A component-based
Building Your First App
uilding Your First App Android Developers http://developer.android.com/training/basics/firstapp/inde... Building Your First App Welcome to Android application development! This class teaches you how to
Mocean Android SDK Developer Guide
Mocean Android SDK Developer Guide For Android SDK Version 3.2 136 Baxter St, New York, NY 10013 Page 1 Table of Contents Table of Contents... 2 Overview... 3 Section 1 Setup... 3 What changed in 3.2:...
Android Application Development - Exam Sample
Android Application Development - Exam Sample 1 Which of these is not recommended in the Android Developer's Guide as a method of creating an individual View? a Create by extending the android.view.view
Android Programming Basics
2012 Marty Hall Android Programming Basics Originals of Slides and Source Code for Examples: http://www.coreservlets.com/android-tutorial/ Customized Java EE Training: http://courses.coreservlets.com/
Android Basic XML Layouts
Android Basic XML Layouts Notes are based on: The Busy Coder's Guide to Android Development by Mark L. Murphy Copyright 2008-2009 CommonsWare, LLC. ISBN: 978-0-9816780-0-9 & Android Developers http://developer.android.com/index.html
Building and Using Web Services With JDeveloper 11g
Building and Using Web Services With JDeveloper 11g Purpose In this tutorial, you create a series of simple web service scenarios in JDeveloper. This is intended as a light introduction to some of the
Jordan Jozwiak November 13, 2011
Jordan Jozwiak November 13, 2011 Agenda Why Android? Application framework Getting started UI and widgets Application distribution External libraries Demo Why Android? Why Android? Open source That means
Lecture 1 Introduction to Android
These slides are by Dr. Jaerock Kwon at. The original URL is http://kettering.jrkwon.com/sites/default/files/2011-2/ce-491/lecture/alecture-01.pdf so please use that instead of pointing to this local copy
Getting Started With Android
Getting Started With Android Author: Matthew Davis Date: 07/25/2010 Environment: Ubuntu 10.04 Lucid Lynx Eclipse 3.5.2 Android Development Tools(ADT) 0.9.7 HTC Incredible (Android 2.1) Preface This guide
Tutorial on Basic Android Setup
Tutorial on Basic Android Setup EE368/CS232 Digital Image Processing, Spring 2015 Windows Version Introduction In this tutorial, we will learn how to set up the Android software development environment
So you want to create an Email a Friend action
So you want to create an Email a Friend action This help file will take you through all the steps on how to create a simple and effective email a friend action. It doesn t cover the advanced features;
Hello World. by Elliot Khazon
Hello World by Elliot Khazon Prerequisites JAVA SDK 1.5 or 1.6 Windows XP (32-bit) or Vista (32- or 64-bit) 1 + more Gig of memory 1.7 Ghz+ CPU Tools Eclipse IDE 3.4 or 3.5 SDK starter package Installation
App Development for Smart Devices. Lec #2: Android Tools, Building Applications, and Activities
App Development for Smart Devices CS 495/595 - Fall 2011 Lec #2: Android Tools, Building Applications, and Activities Tamer Nadeem Dept. of Computer Science Objective Understand Android Tools Setup Android
Hypercosm. Studio. www.hypercosm.com
Hypercosm Studio www.hypercosm.com Hypercosm Studio Guide 3 Revision: November 2005 Copyright 2005 Hypercosm LLC All rights reserved. Hypercosm, OMAR, Hypercosm 3D Player, and Hypercosm Studio are trademarks
Login with Amazon Getting Started Guide for Android. Version 2.0
Getting Started Guide for Android Version 2.0 Login with Amazon: Getting Started Guide for Android Copyright 2016 Amazon.com, Inc., or its affiliates. All rights reserved. Amazon and the Amazon logo are
Introduction to NaviGenie SDK Client API for Android
Introduction to NaviGenie SDK Client API for Android Overview 3 Data access solutions. 3 Use your own data in a highly optimized form 3 Hardware acceleration support.. 3 Package contents.. 4 Libraries.
Introduction: The Xcode templates are not available in Cordova-2.0.0 or above, so we'll use the previous version, 1.9.0 for this recipe.
Tutorial Learning Objectives: After completing this lab, you should be able to learn about: Learn how to use Xcode with PhoneGap and jquery mobile to develop iphone Cordova applications. Learn how to use
Android Sensors. XI Jornadas SLCENT de Actualización Informática y Electrónica
Android Sensors XI Jornadas SLCENT de Actualización Informática y Electrónica About me José Juan Sánchez Hernández Android Developer (In my spare time :) Member and collaborator of: - Android Almería Developer
Developing with Android Studio
CHAPTER 6 Developing with Android Studio Donn Felker Android Studio (shown in Figure 6-1) is the IDE for Android that was announced in May 2013 at the Google I/O developers event, and is intended as an
Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3 SP02
Tutorial: Android Object API Application Development SAP Mobile Platform 2.3 SP02 DOCUMENT ID: DC01939-01-0232-01 LAST REVISED: May 2013 Copyright 2013 by Sybase, Inc. All rights reserved. This publication
Introduction to Android: Hello, Android! 26 Mar 2010 CMPT166 Dr. Sean Ho Trinity Western University
Introduction to Android: Hello, Android! 26 Mar 2010 CMPT166 Dr. Sean Ho Trinity Western University Android OS Open-source mobile OS (mostly Apache licence) Developed by Google + Open Handset Alliance
Android on Intel Course App Development - Advanced
Android on Intel Course App Development - Advanced Paul Guermonprez www.intel-software-academic-program.com [email protected] Intel Software 2013-02-08 Persistence Preferences Shared preference
Introduction (Apps and the Android platform)
Introduction (Apps and the Android platform) CE881: Mobile and Social Application Programming Simon Lucas & Spyros Samothrakis January 13, 2015 1 / 38 1 2 3 4 2 / 38 Course Structure 10 weeks Each week:
Presenting Android Development in the CS Curriculum
Presenting Android Development in the CS Curriculum Mao Zheng Hao Fan Department of Computer Science International School of Software University of Wisconsin-La Crosse Wuhan University La Crosse WI, 54601
Tutorial 5: Developing Java applications
Tutorial 5: Developing Java applications p. 1 Tutorial 5: Developing Java applications Georgios Gousios [email protected] Department of Management Science and Technology Athens University of Economics and
Android App Development Lloyd Hasson 2015 CONTENTS. Web-Based Method: Codenvy. Sponsored by. Android App. Development
Android App Lloyd Hasson 2015 Web-Based Method: Codenvy This tutorial goes through the basics of Android app development, using web-based technology and basic coding as well as deploying the app to a virtual
Setting Up Your Android Development Environment. For Mac OS X (10.6.8) v1.0. By GoNorthWest. 3 April 2012
Setting Up Your Android Development Environment For Mac OS X (10.6.8) v1.0 By GoNorthWest 3 April 2012 Setting up the Android development environment can be a bit well challenging if you don t have all
OpenCV on Android Platforms
OpenCV on Android Platforms Marco Moltisanti Image Processing Lab http://iplab.dmi.unict.it [email protected] http://www.dmi.unict.it/~moltisanti Outline Intro System setup Write and build an Android
Introduction to Android Development. Jeff Avery CS349, Mar 2013
Introduction to Android Development Jeff Avery CS349, Mar 2013 Overview What is Android? Android Architecture Overview Application Components Activity Lifecycle Android Developer Tools Installing Android
Backend as a Service
Backend as a Service Apinauten GmbH Hainstraße 4 04109 Leipzig 1 Backend as a Service Applications are equipped with a frontend and a backend. Programming and administrating these is challenging. As the
Introduction to Android SDK Jordi Linares
Introduction to Android SDK Introduction to Android SDK http://www.android.com Introduction to Android SDK Google -> OHA (Open Handset Alliance) The first truly open and comprehensive platform for mobile
23442 ECE 09402 7 Introduction to Android Mobile Programming 23442 ECE 09504 7 Special Topics: Android Mobile Programming
23442 ECE 09402 7 Introduction to Android Mobile Programming 23442 ECE 09504 7 Special Topics: Android Mobile Programming Mondays 5:00 PM to 7:45 PM SJTP, Room 137 Portions From Android Programming The
ANDROID APP DEVELOPMENT: AN INTRODUCTION CSCI 5115-9/19/14 HANNAH MILLER
ANDROID APP DEVELOPMENT: AN INTRODUCTION CSCI 5115-9/19/14 HANNAH MILLER DISCLAIMER: Main focus should be on USER INTERFACE DESIGN Development and implementation: Weeks 8-11 Begin thinking about targeted
Overview. About Interstitial Ads: About Banner Ads: About Offer-Wall Ads: ADAttract Account & ID
Overview About Interstitial Ads: Interstitial ads are full screen ads that cover the interface of their host app. They are generally displayed at usual transformation points in the flow of an app, such
Crystal Reports for Eclipse
Crystal Reports for Eclipse Table of Contents 1 Creating a Crystal Reports Web Application...2 2 Designing a Report off the Xtreme Embedded Derby Database... 11 3 Running a Crystal Reports Web Application...
Creating a List UI with Android. Michele Schimd - 2013
Creating a List UI with Android Michele Schimd - 2013 ListActivity Direct subclass of Activity By default a ListView instance is already created and rendered as the layout of the activity mylistactivit.getlistview();
Android Studio Application Development
Android Studio Application Development Belén Cruz Zapata Chapter No. 4 "Using the Code Editor" In this package, you will find: A Biography of the author of the book A preview chapter from the book, Chapter
Tutorial: Android Object API Application Development. SAP Mobile Platform 2.3
Tutorial: Android Object API Application Development SAP Mobile Platform 2.3 DOCUMENT ID: DC01939-01-0230-01 LAST REVISED: March 2013 Copyright 2013 by Sybase, Inc. All rights reserved. This publication
Chapter 2 Getting Started
Welcome to Android Chapter 2 Getting Started Android SDK contains: API Libraries Developer Tools Documentation Sample Code Best development environment is Eclipse with the Android Developer Tool (ADT)
Android Programming: Installation, Setup, and Getting Started
2012 Marty Hall Android Programming: Installation, Setup, and Getting Started Originals of Slides and Source Code for Examples: http://www.coreservlets.com/android-tutorial/ Customized Java EE Training:
TUTORIAL. BUILDING A SIMPLE MAPPING APPLICATION
Cleveland State University CIS493. Mobile Application Development Using Android TUTORIAL. BUILDING A SIMPLE MAPPING APPLICATION The goal of this tutorial is to create a simple mapping application that
Android Programming Lecture 18: Menus Sensors 11/11/2011
Android Programming Lecture 18: Menus Sensors 11/11/2011 Simple Menu Example Submenu Example Sensors and Actuators Sensors Sensors provide information about the device and its environment Will ignore camera
