Internal Services. CSE 5236: Mobile Application Development Instructor: Adam C. Champion Course Coordinator: Dr. Rajiv Ramnath

Size: px
Start display at page:

Download "Internal Services. CSE 5236: Mobile Application Development Instructor: Adam C. Champion Course Coordinator: Dr. Rajiv Ramnath"

Transcription

1 Internal Services CSE 5236: Mobile Application Development Instructor: Adam C. Champion Course Coordinator: Dr. Rajiv Ramnath 1

2 Internal Services Communication: , SMS and telephony Audio and video: Record and playback Sensors: Accelerometer, light, magnetic, ambient temperature 2

3 Sending public void sendscoresvia () { Intent intent = new Intent(android.content.Intent.ACTION_SEND); intent.putextra( android.content.intent.extra_subject, "Look at my AWESOME TicTacToe Score!"); // Can also fill To: using putextra(, EXTRA_ ) intent.settype("plain/text"); intent.putextra(android.content.intent.extra_text, firstplayername + " score is " + scoreplayerone + " and " + secondplayername + " score is " + scoreplayertwo); startactivity( intent); No classes for (!): 3bb7cf1ad6fd3a4f. 3

4 SMS public void sendscoresviasms() { Intent SMSIntent = new Intent(Intent.ACTION_VIEW); SMSIntent.putExtra("sms_body", "Look at my AWESOME TicTacToe Score!" + firstplayername + " score is " + scoreplayerone + " and " + secondplayername + " score is " + scoreplayertwo); SMSIntent.setType("vnd.android-dir/mms-sms"); startactivity(smsintent); Can also use SMS class. See: Will need: <uses-permission android:name= android.permission.send_sms /> 4

5 Telephony public void calltictactoehelp() { Intent phoneintent = new Intent(Intent.ACTION_CALL); String phonenumber = " "; // TIC TAC HELP String uri = "tel:" + phonenumber.trim(); phoneintent.setdata(uri.parse(uri)); startactivity(phoneintent); Needs: <uses-permission android:name="android.permission.call_phone"/> 5

6 1. 2. Playing Audio Example: Setup <?xml version="1.0" encoding="utf-8"?> <LinearLayout > <Button android:text="start Audio"/> <Button android:text="stop Audio /> <Button android:text="record Audio"/> <Button android:text="exit" /> </LinearLayout> Click green Android icon to open Android Device Monitor Highlight device directory: /mnt/shell/emulated/0/sampleaudio.mp3 Select icon with tooltip: Push a file onto the device. CODE ON NEXT SLIDE (Audio.java) 6

7 String audiofilepath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC).getPath() + /sampleaudio.mp3 ; Uri audiofileuri = Uri.fromFile(new File(audioFilePath)); public void onclick(view v) { switch(v.getid()) { case R.id.buttonAudioStart: 1 if (!started) { Intent musicintent = new Intent(this, MyPlaybackService.class); musicintent.putextra("uristring", audiofileuri.tostring()); startservice(musicintent); started=true; break; case R.id.buttonAudioStop: stopservice(new Intent(this, MyPlaybackService.class)); started=false; break; case R.id.buttonAudioRecord: // Uses built-in Recorder Intent audiorecordintent = new Intent(MediaStore.Audio.Media.RECORD_SOUND_ACTION); startactivityforresult(audiorecordintent, AUDIO_CAPTURED); 2 break; case R.id.buttonAudioExit: finish(); break; protected void onactivityresult (int requestcode, int resultcode, Intent data) { if (resultcode == RESULT_OK && requestcode == AUDIO_CAPTURED) { audiofileuri = data.getdata(); 3 Log.v(TAGACTIVITYAUDIO, "Audio File URI: >" + audiofileuri + "<"); 7

8 Media Player States Source: 8

9 Playing Audio: Service <service android:enabled="true android:name=".myplaybackservice /> public class MyPlaybackService extends Service { MediaPlayer player; public IBinder onbind(intent intent) { return null; //Bound services interact with multiple clients public void oncreate() { player = MediaPlayer.create(this, R.raw.sampleaudio); player.setlooping(true); public void onstart(intent intent, int startid) { Bundle extras = intent.getextras(); if(extras!=null){ String audiofileuristring = extras.getstring("uristring"); Uri audiofileuri = Uri.parse(audioFileURIString); try { player.reset(); player.setdatasource(this.getapplicationcontext(), audiofileuri); player.prepare(); catch (Exception e) { player.start(); public void ondestroy() {player.stop(); 9

10 Handling Video Using VideoView <?xml version="1.0" encoding="utf-8"?> <LinearLayout > <VideoView android:layout_height="175dip" android:layout_width="match_parent" android:layout_gravity="center" /> <Button android:text="start Video"/> <Button android:text="stop Video /> <Button android:text="record Video"/> <Button android:text="exit" /> </LinearLayout> 10

11 Handling Video: Activity (1) public class Video extends Activity implements OnClickListener{ VideoView videoview = null; static Uri videofileuri = null; public static int VIDEO_CAPTURED = 1; protected void oncreate(bundle savedinstancestate) { videoview = (VideoView) findviewbyid(r.id.videoview); String path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES).getPath() + "/samplevideo.mp4"; File videofile = new File("/mnt/sdcard/samplevideo.3gp"); videofileuri = Uri.fromFile(videoFile); protected void onactivityresult(int requestcode,int resultcode,intent data) { if (resultcode == RESULT_OK && requestcode == VIDEO_CAPTURED) { videofileuri = data.getdata(); 11

12 Handling Video: Activity (2) public void onclick(view v) { switch(v.getid()){ case R.id.buttonVideoStart: // Load and start the movie videoview.setvideouri(videofileuri); videoview.start(); break; case R.id.buttonVideoRecord: Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); startactivityforresult(intent, VIDEO_CAPTURED); break; case R.id.buttonVideoStop: videoview.stopplayback(); break; case R.id.buttonVideoExit: finish(); break; protected void onactivityresult(int requestcode, int resultcode, Intent data) { if (resultcode == RESULT_OK && requestcode == VIDEO_CAPTURED) { videofileuri = data.getdata(); 12

13 Handling Images: ImageView <?xml version="1.0" encoding="utf-8"?> <LinearLayout > <ImageView android:layout_height="175dip" android:layout_width="match_parent" android:layout_gravity="center" /> <Button android:text="show Image"/> <Button android:text="take Picture"/> <Button android:text="exit" /> </LinearLayout> 13

14 Handling Images: Code (1) public class Images extends Activity implements OnClickListener{ public int flag = 0; ImageView imageview = null; public static int IMAGE_CAPTURED = 1; static Uri imagefileuri = null; String imagefilepath = Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES).getPath() + "/sampleimage.png ; Bitmap imagebitmap = null; static final String TAGIMAGE = "ActivityShowImage ; protected void oncreate(bundle savedinstancestate) { imageview = (ImageView) findviewbyid(r.id.imageview); imagebitmap = BitmapFactory.decodeFile(imageFilePath); 14

15 Handling Images: Code (2) public void onclick(view v) { switch(v.getid()) { case R.id.buttonImageShow: // Use BitmapFactory to create a bitmap imageview.setimagebitmap(imagebitmap); break; case R.id.buttonImageCapture: Intent cameraintent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startactivityforresult(cameraintent, IMAGE_CAPTURED); break; case R.id.buttonImageExit: finish(); break; 15

16 Handling Images: Code (3) protected void onactivityresult (int requestcode, int resultcode, Intent cameraintent) { if (resultcode == RESULT_OK && requestcode == IMAGE_CAPTURED) { Bundle extras = cameraintent.getextras(); imagebitmap = (Bitmap) extras.get("data"); imageview.setimagebitmap(imagebitmap); protected void onpause() { Log.d(TAGIMAGE, "Entering onpause"); super.onpause(); System.gc(); //garbage collector // Suggestion: call imagebitmap.recycle() in ondestroy() Known bug: 16

17 Sensors Uses: Provide environmental data to app Tailor app to environment Types: Accelerometer, Light sensor, Magnetic, Near-field Example files (from Tic-Tac-Toe): Sensors Activity Sensors.xml Issues: Noisy devices Best tested on a real device. For how to simulate sensors on the emulator see: 17

18 Sensors: Listing Available Sensors sensormanager = (SensorManager) getsystemservice(sensor_service); sensorlist = sensormanager.getsensorlist(sensor.type_all); int count=0; for (Sensor sensor : sensorlist) { String sensorname = sensor.getname(); sensordescriptions.append(count+ ". " + sensorname + "\n" + " " + " Ver:" + sensor.getversion() + " Range: " + sensor.getmaximumrange() + " Power: " + sensor.getpower() + " Res: " + sensor.getresolution()); sensordescriptions.append("\n"); count++; 18

19 Sensors: Registration and Unregistration protected void onresume() { super.onresume(); for (Sensor sensor : sensorlist) { sensormanager.registerlistener(this, sensor, protected void onpause() { super.onpause(); // Stop updates sensormanager.unregisterlistener(this); SensorManager.SENSOR_DELAY_NORMAL); 19

20 Receiving Sensor Updates public void onsensorchanged(sensorevent event) { String sensoreventstring = sensoreventtostring(event); Log.d(LOGTAG, "--- EVENT Raw Values ---\n" + sensorname + "<\n" + "Distance Last= >" + distanceoflastvalue + "<\n" + "Distance This= >" + distanceofthisvalue + "<\n" + "Change = >" + change + "<\n" + "Percent = >" + percentagechange + "%\n" + "Last value = " + lastvaluestring + "<\n" + sensoreventstring); See complete method on how to filter out noise. 20

21 Extracting Sensor Parameters private String sensoreventtostring(sensorevent event) { StringBuilder builder = new StringBuilder(); builder.append("sensor: "); builder.append(event.sensor.getname()); builder.append("\naccuracy: "); builder.append(event.accuracy); builder.append("\ntimestamp: "); builder.append(event.timestamp); builder.append("\nvalues:\n"); for (int i = 0; i < event.values.length; i++) { builder.append(" ["); builder.append(i); builder.append("] = "); builder.append(event.values[i]); builder.append("\n"); return builder.tostring(); 21

22 References Chapter 11: Harnessing the Capabilities of your Android Device from Android SDK 3 Programming for Dummies Services: SMS: SIP (internet telephony): MediaPlayer: MediaRecorder: MediaStore class (extract meta-data from media): Camera: BitmapFactory: Bitmap: Sensor: SesnorEvent: 22

23 Thank You Questions and comments? 23

Android app development course

Android app development course Android app development course Unit 7- + Beyond Android Activities. SMS. Audio, video, camera. Sensors 1 SMS We can send an SMS through Android's native client (using an implicit Intent) Intent smsintent

More information

CSE476 Mobile Application Development. Yard. Doç. Dr. Tacha Serif tserif@cse.yeditepe.edu.tr. Department of Computer Engineering Yeditepe University

CSE476 Mobile Application Development. Yard. Doç. Dr. Tacha Serif tserif@cse.yeditepe.edu.tr. Department of Computer Engineering Yeditepe University CSE476 Mobile Application Development Yard. Doç. Dr. Tacha Serif tserif@cse.yeditepe.edu.tr Department of Computer Engineering Yeditepe University Fall 2015 Yeditepe University 2015 Outline Dalvik Debug

More information

App Development for Smart Devices. Lec #4: Services and Broadcast Receivers Try It Out

App Development for Smart Devices. Lec #4: Services and Broadcast Receivers Try It Out App Development for Smart Devices CS 495/595 - Fall 2013 Lec #4: Services and Broadcast Receivers Try It Out Tamer Nadeem Dept. of Computer Science Try It Out Example 1 (in this slides) Example 2 (in this

More information

Android Sensor Programming. Weihong Yu

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,

More information

Android Services. Android. Victor Matos

Android Services. Android. Victor Matos Lesson 22 Android Victor Matos Cleveland State University Notes are based on: Android Developers http://developer.android.com/index.html Portions of this page are reproduced from work created and shared

More information

Now that we have the Android SDK, Eclipse and Phones all ready to go we can jump into actual Android development.

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

More information

ELET4133: Embedded Systems. Topic 15 Sensors

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

More information

06 Team Project: Android Development Crash Course; Project Introduction

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

More information

Android Framework. How to use and extend it

Android Framework. How to use and extend it Android Framework How to use and extend it Lectures 9/10 Android Security Security threats Security gates Android Security model Bound Services Complex interactions with Services Alberto Panizzo 2 Lecture

More information

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 & 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

More information

Android Sensors. CPRE 388 Fall 2015 Iowa State University

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,

More information

Using Sensors on the Android Platform. Andreas Terzis Android N00b

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

More information

Using Extensions or Cordova Plugins in your RhoMobile Application Darryn Campbell @darryncampbell

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

More information

Objective. Android Sensors. Sensor Manager Sensor Types Examples. Page 2

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

More information

Arduino & Android. A How to on interfacing these two devices. Bryant Tram

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

More information

Develop a Hello World project in Android Studio Capture, process, store, and display an image. Other sensors on Android phones

Develop a Hello World project in Android Studio Capture, process, store, and display an image. Other sensors on Android phones Kuo-Chin Lien Develop a Hello World project in Android Studio Capture, process, store, and display an image on Android phones Other sensors on Android phones If you have been using Eclipse with ADT, be

More information

Android Development. Marc Mc Loughlin

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/

More information

Using the Android Sensor API

Using the Android Sensor API Using the Android Sensor API Juan José Marrón Department of Computer Science & Engineering jmarronm@mail.usf.edu # Outline Sensors description: - Motion Sensors - Environmental Sensors - Positioning Sensors

More information

Android. Mobile Computing Design and Implementation. Application Components, Sensors. Peter Börjesson

Android. Mobile Computing Design and Implementation. Application Components, Sensors. Peter Börjesson Android Application Components, Sensors Mobile Computing Design and Implementation Peter Börjesson Application Sandbox Android System & Device Data Contacts, Messages, SD Card, Camera, Bluetooth, etc.

More information

Android. Learning Android Marko Gargenta. Tuesday, March 11, 14

Android. Learning Android Marko Gargenta. Tuesday, March 11, 14 Android Learning Android Marko Gargenta Materials Sams Teach Yourself Android Application Development in 24 Hours (Amazon) Android Apps for Absolute Beginners (Amazon) Android Development Tutorial (http://

More information

@ME (About) Marcelo Cyreno. Skype: marcelocyreno Linkedin: marcelocyreno Mail: marcelocyreno@gmail.com

@ME (About) Marcelo Cyreno. Skype: marcelocyreno Linkedin: marcelocyreno Mail: marcelocyreno@gmail.com Introduction @ME (About) Marcelo Cyreno Skype: marcelocyreno Linkedin: marcelocyreno Mail: marcelocyreno@gmail.com Android - Highlights Open Source Linux Based Developed by Google / Open Handset Alliance

More information

Android Programming Lecture 18: Menus Sensors 11/11/2011

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

More information

Introduction to NaviGenie SDK Client API for Android

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.

More information

PROGRAMMING IN ANDROID. IOANNIS (JOHN) PAPAVASILEIOU OCTOBER 24 2013 papabasile@engr.uconn.edu

PROGRAMMING IN ANDROID. IOANNIS (JOHN) PAPAVASILEIOU OCTOBER 24 2013 papabasile@engr.uconn.edu PROGRAMMING IN ANDROID IOANNIS (JOHN) PAPAVASILEIOU OCTOBER 24 2013 papabasile@engr.uconn.edu WHAT IS IT Software platform Operating system Key apps Developers: Google Open Handset Alliance Open Source

More information

Hello World! Some code

Hello World! Some code Embedded Systems Programming Hello World! Lecture 10 Verónica Gaspes www2.hh.se/staff/vero What could an Android hello world application be like? Center for Research on Embedded Systems School of Information

More information

Boardies IT Solutions info@boardiesitsolutions.com Tel: 01273 252487

Boardies IT Solutions info@boardiesitsolutions.com Tel: 01273 252487 Navigation Drawer Manager Library H ow to implement Navigation Drawer Manager Library into your A ndroid Applications Boardies IT Solutions info@boardiesitsolutions.com Tel: 01273 252487 Contents Version

More information

Android Application Model

Android Application Model Android Application Model Content - Activities - Intent - Tasks / Applications - Lifecycle - Processes and Thread - Services - Content Provider Dominik Gruntz IMVS dominik.gruntz@fhnw.ch 1 Android Software

More information

Frameworks & Android. Programmeertechnieken, Tim Cocx

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

More information

Android Services. Services

Android Services. Services Android Notes are based on: Android Developers http://developer.android.com/index.html 22. Android Android A Service is an application component that runs in the background, not interacting with the user,

More information

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 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

More information

Sensors. Marco Ronchetti Università degli Studi di Trento

Sensors. Marco Ronchetti Università degli Studi di Trento 1 Sensors Marco Ronchetti Università degli Studi di Trento Sensor categories Motion sensors measure acceleration forces and rotational forces along three axes. This category includes accelerometers, gravity

More information

App Development for Smart Devices. Lec #2: Android Tools, Building Applications, and Activities

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

More information

How to develop your own app

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

More information

TomTom PRO 82xx PRO.connect developer guide

TomTom PRO 82xx PRO.connect developer guide TomTom PRO 82xx PRO.connect developer guide Contents Introduction 3 Preconditions 4 Establishing a connection 5 Preparations on Windows... 5 Preparations on Linux... 5 Connecting your TomTom PRO 82xx device

More information

Lab 1 (Reading Sensors & The Android API) Week 3

Lab 1 (Reading Sensors & The Android API) Week 3 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

More information

Introduction to Android SDK Jordi Linares

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

More information

! Sensors in Android devices. ! Motion sensors. ! Accelerometer. ! Gyroscope. ! Supports various sensor related tasks

! Sensors in Android devices. ! Motion sensors. ! Accelerometer. ! Gyroscope. ! Supports various sensor related tasks CSC 472 / 372 Mobile Application Development for Android Prof. Xiaoping Jia School of Computing, CDM DePaul University xjia@cdm.depaul.edu @DePaulSWEng Outline Sensors in Android devices Motion sensors

More information

Android Sensors. Mobile Applica1ons Jay Urbain, Ph.D. Credits:

Android Sensors. Mobile Applica1ons Jay Urbain, Ph.D. Credits: Android Sensors Credits: Mobile Applica1ons Jay Urbain, Ph.D. Meier, Reto, Professional Android 4 Applica1on Development. hbp://developer.android.com/guide/topics/sensors/sensors_overview.html hbp://developer.android.com/guide/topics/sensors/sensors_overview.html

More information

Getting Started: Creating a Simple App

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

More information

( Modified from Original Source at http://www.devx.com/wireless/article/39239 )

( Modified from Original Source at http://www.devx.com/wireless/article/39239 ) Accessing GPS information on your Android Phone ( Modified from Original Source at http://www.devx.com/wireless/article/39239 ) Using Eclipse, create a new Android project and name it GPS.java. To use

More information

4. The Android System

4. The Android System 4. The Android System 4. The Android System System-on-Chip Emulator Overview of the Android System Stack Anatomy of an Android Application 73 / 303 4. The Android System Help Yourself Android Java Development

More information

Università Degli Studi di Parma. Distributed Systems Group. Android Development. Lecture 2 Android Platform. Marco Picone - 2012

Università Degli Studi di Parma. Distributed Systems Group. Android Development. Lecture 2 Android Platform. Marco Picone - 2012 Android Development Lecture 2 Android Platform Università Degli Studi di Parma Lecture Summary 2 The Android Platform Dalvik Virtual Machine Application Sandbox Security and Permissions Traditional Programming

More information

Softek Software Ltd. Softek Barcode Reader Toolkit for Android. Product Documentation V7.5.1

Softek Software Ltd. Softek Barcode Reader Toolkit for Android. Product Documentation V7.5.1 Softek Software Ltd Softek Barcode Reader Toolkit for Android Product Documentation V7.5.1 1 Contents 2... 1 3 Installation... 1 4 Calling Bardecoder from another App... 1 5 Settings for the Bardecoder

More information

Programming Mobile Applications with Android

Programming Mobile Applications with Android Programming Mobile Applications 22-26 September, Albacete, Spain Jesus Martínez-Gómez Introduction to advanced android capabilities Maps and locations.- How to use them and limitations. Sensors.- Using

More information

Android Concepts and Programming TUTORIAL 1

Android Concepts and Programming TUTORIAL 1 Android Concepts and Programming TUTORIAL 1 Kartik Sankaran kar.kbc@gmail.com CS4222 Wireless and Sensor Networks [2 nd Semester 2013-14] 20 th January 2014 Agenda PART 1: Introduction to Android - Simple

More information

Design of Cloud based Instant Messaging System on Android Smartphone using Internet

Design of Cloud based Instant Messaging System on Android Smartphone using Internet Design of Cloud based Instant Messaging System on Android Smartphone using Internet Shubham Pandey K. Navin G. Vadivu, Ph. D PG Scholar Assistant Professor Professor Department of IT Department of IT Department

More information

CRYPTOGRAPHY 456 ANDROID SECURE FILE TRANSFER W/ SSL

CRYPTOGRAPHY 456 ANDROID SECURE FILE TRANSFER W/ SSL CRYPTOGRAPHY 456 ANDROID SECURE FILE TRANSFER W/ SSL Daniel Collins Advisor: Dr. Wei Zhong Contents Create Key Stores and Certificates Multi-Threaded Android applications UI Handlers Creating client and

More information

Android. Lecture 1. Learning Android Marko Gargenta. Friday, March 22, 13

Android. Lecture 1. Learning Android Marko Gargenta. Friday, March 22, 13 Android Lecture 1 Learning Android Marko Gargenta Final Project Jan/Feb: ARM March: Android Apr: Final project Complexity Sense the world Analysis Service delivery Hands-on A fun project built-up through

More information

Lecture 1 Introduction to Android

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

More information

Android Security Lab WS 2014/15 Lab 1: Android Application Programming

Android Security Lab WS 2014/15 Lab 1: Android Application Programming Saarland University Information Security & Cryptography Group Prof. Dr. Michael Backes saarland university computer science Android Security Lab WS 2014/15 M.Sc. Sven Bugiel Version 1.0 (October 6, 2014)

More information

Android Basics. Xin Yang 2016-05-06

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)

More information

App Development for Smart Devices. Lec #5: Android Sensors

App Development for Smart Devices. Lec #5: Android Sensors App Development for Smart Devices CS 495/595 - Fall 2012 Lec #5: Android Sensors Tamer Nadeem Dept. of Computer Science Objective Working in Background Sensor Manager Examples Sensor Types Page 2 What

More information

Android For Java Developers. Marko Gargenta Marakana

Android For Java Developers. Marko Gargenta Marakana Android For Java Developers Marko Gargenta Marakana Agenda Android History Android and Java Android SDK Hello World! Main Building Blocks Debugging Summary History 2005 Google buys Android, Inc. Work on

More information

WEARIT DEVELOPER DOCUMENTATION 0.2 preliminary release July 20 th, 2013

WEARIT DEVELOPER DOCUMENTATION 0.2 preliminary release July 20 th, 2013 WEARIT DEVELOPER DOCUMENTATION 0.2 preliminary release July 20 th, 2013 The informations contained in this document are subject to change without notice and should not be construed as a commitment by Si14

More information

jsug.at University of Technology Vienna October 25 th 2010 Android Sensors by Stefan Varga, Michal Kostic touchqode.com

jsug.at University of Technology Vienna October 25 th 2010 Android Sensors by Stefan Varga, Michal Kostic touchqode.com jsug.at University of Technology Vienna October 25 th 2010 Android Sensors by Stefan Varga, Michal Kostic touchqode.com Why sensors? 2 3 4 Applications Resizing screen / tilt Environment adjustment of

More information

Android Application Development

Android Application Development Android Application Development Self Study Self Study Guide Content: Course Prerequisite Course Content Android SDK Lab Installation Guide Start Training Be Certified Exam sample Course Prerequisite The

More information

Intro to Android Development 2. Accessibility Capstone Nov 23, 2010

Intro to Android Development 2. Accessibility Capstone Nov 23, 2010 Intro to Android Development 2 Accessibility Capstone Nov 23, 2010 Outline for Today Application components Activities Intents Manifest file Visual user interface Creating a user interface Resources TextToSpeech

More information

Mobile Security - Tutorial 1. Beginning Advanced Android Development Brian Ricks Fall 2014

Mobile Security - Tutorial 1. Beginning Advanced Android Development Brian Ricks Fall 2014 Mobile Security - Tutorial 1 Beginning Advanced Android Development Brian Ricks Fall 2014 Before we begin... I took your Wireless Network Security course in Spring... are you gonna have memes in this?

More information

Specialized Android APP Development Program with Java (SAADPJ) Duration 2 months

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

More information

directory to "d:\myproject\android". Hereafter, I shall denote the android installed directory as

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

More information

Basics of Android Development 1

Basics of Android Development 1 Departamento de Engenharia Informática Minds-On Basics of Android Development 1 Paulo Baltarejo Sousa pbs@isep.ipp.pt 2016 1 The content of this document is based on the material presented at http://developer.android.com

More information

Addressing Non-Functional Requirements in Mobile Applications

Addressing Non-Functional Requirements in Mobile Applications Addressing Non-Functional Requirements in Mobile Applications CSE 5236: Mobile Application Development Instructor: Adam C. Champion Course Coordinator: Dr. Rajiv Ramnath 1 Outline Non-Functional Requirements

More information

Android builders summit The Android media framework

Android builders summit The Android media framework Android builders summit The Android media framework Author: Bert Van Dam & Poornachandra Kallare Date: 22 April 2014 Usage models Use the framework: MediaPlayer android.media.mediaplayer Framework manages

More information

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 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

More information

-Android 2.3 is the most used version of Android on the market today with almost 60% of all Android devices running 2.3 Gingerbread -Winner of

-Android 2.3 is the most used version of Android on the market today with almost 60% of all Android devices running 2.3 Gingerbread -Winner of 1 2 3 -Android 2.3 is the most used version of Android on the market today with almost 60% of all Android devices running 2.3 Gingerbread -Winner of Internet Telephony Magazine s 2012 Product of the Year

More information

E0-245: ASP. Lecture 16+17: Physical Sensors. Dipanjan Gope

E0-245: ASP. Lecture 16+17: Physical Sensors. Dipanjan Gope E0-245: ASP Lecture 16+17: Physical Sensors Module 2: Android Sensor Applications Location Sensors - Theory of location sensing - Package android.location Physical Sensors - Sensor Manager - Accelerometer

More information

Android Programming. Android App. Høgskolen i Telemark Telemark University College. Cuong Nguyen, 2013.06.19

Android Programming. Android App. Høgskolen i Telemark Telemark University College. Cuong Nguyen, 2013.06.19 Høgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics Android Programming Cuong Nguyen, 2013.06.19 Android App Faculty of Technology,

More information

Android Java Live and In Action

Android Java Live and In Action Android Java Live and In Action Norman McEntire Founder, Servin Corp UCSD Extension Instructor norman.mcentire@servin.com Copyright (c) 2013 Servin Corp 1 Opening Remarks Welcome! Thank you! My promise

More information

Updated to match implementation

Updated to match implementation Android Sensor System Olufemi Omojola July 27, 2010 Revision History May 17, 2010 May 21, 2010 July 27, 2010 Initial draft Updates after discussion Updated to match implementation Introduction This document

More information

Programming with Android: System Architecture. Dipartimento di Scienze dell Informazione Università di Bologna

Programming with Android: System Architecture. Dipartimento di Scienze dell Informazione Università di Bologna Programming with Android: System Architecture Luca Bedogni Marco Di Felice Dipartimento di Scienze dell Informazione Università di Bologna Outline Android Architecture: An Overview Android Dalvik Java

More information

CP3100 - Introduction to Android Mobile Development

CP3100 - Introduction to Android Mobile Development Philippe Leefsma, Philippe.Leefsma@Autodesk.com Autodesk Inc. Developer Technical Services CP3100 Learn how quick and easy it is to start programming for Android devices. We will create from scratch a

More information

Android Persistency: Files

Android Persistency: Files 15 Android Persistency: Files 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

More information

Creating a List UI with Android. Michele Schimd - 2013

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();

More information

Android Development Tutorial. Nikhil Yadav CSE40816/60816 - Pervasive Health Fall 2011

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)

More information

Android for Java Developers OSCON 2010. Marko Gargenta Marakana

Android for Java Developers OSCON 2010. Marko Gargenta Marakana Android for Java Developers OSCON 2010 Marko Gargenta Marakana About Marko Gargenta Developed Android Bootcamp for Marakana. Trained over 1,000 developers on Android. Clients include Qualcomm, Sony-Ericsson,

More information

Obsoleted chapter from The Busy Coder's Guide to Advanced Android Development

Obsoleted chapter from The Busy Coder's Guide to Advanced Android Development CHAPTER 13 "" is Android's overall term for ways that Android can detect elements of the physical world around it, from magnetic flux to the movement of the device. Not all devices will have all possible

More information

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android

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

More information

ECWM511 MOBILE APPLICATION DEVELOPMENT Lecture 1: Introduction to Android

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

More information

Testing Network Performance and Location Based Services throughout Calling and SMS Applications in Android

Testing Network Performance and Location Based Services throughout Calling and SMS Applications in Android Testing Network Performance and Location Based Services throughout Calling and SMS Applications in Android Ahmad Shekhan Imran Siddique This thesis is presented as part of degree of Bachelor of Science

More information

With a single download, the ADT Bundle includes everything you need to begin developing apps:

With a single download, the ADT Bundle includes everything you need to begin developing apps: Get the Android SDK The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android. The ADT bundle includes the essential Android SDK components

More information

Graduate presentation for CSCI 5448. By Janakiram Vantipalli ( Janakiram.vantipalli@colorado.edu )

Graduate presentation for CSCI 5448. By Janakiram Vantipalli ( Janakiram.vantipalli@colorado.edu ) Graduate presentation for CSCI 5448 By Janakiram Vantipalli ( Janakiram.vantipalli@colorado.edu ) Content What is Android?? Versions and statistics Android Architecture Application Components Inter Application

More information

Mobile App Sensor Documentation (English Version)

Mobile App Sensor Documentation (English Version) Mobile App Sensor Documentation (English Version) Mobile App Sensor Documentation (English Version) Version: 1.2.1 Date: 2015-03-25 Author: email: Kantar Media spring support@spring.de Content Mobile App

More information

Introduction to Android Programming. Khuong Vu, Graduate student Computer Science department

Introduction to Android Programming. Khuong Vu, Graduate student Computer Science department Introduction to Android Programming Khuong Vu, Graduate student Computer Science department 1 Content Get started Set up environment Running app on simulator GUI Layouts Event handling Life cycle Networking

More information

Basic Android Setup. 2014 Windows Version

Basic Android Setup. 2014 Windows Version Basic Android Setup 2014 Windows Version Introduction In this tutorial, we will learn how to set up the Android software development environment and how to implement image processing operations on an Android

More information

Google Android Syllabus

Google Android Syllabus Google Android Syllabus Introducing the Android Computing Platform A New Platform for a New Personal Computer Early History of Android Delving Into the Dalvik VM Understanding the Android Software Stack

More information

Advertiser Campaign SDK Your How-to Guide

Advertiser Campaign SDK Your How-to Guide Advertiser Campaign SDK Your How-to Guide Using Leadbolt Advertiser Campaign SDK with Android Apps Version: Adv2.03 Copyright 2012 Leadbolt All rights reserved Disclaimer This document is provided as-is.

More information

Performance issues in writing Android Apps

Performance issues in writing Android Apps Performance issues in writing Android Apps Octav Chipara The process of developing Android apps problem definition focus: define the problem what is the input/out? what is the criteria for success? develop

More information

Android Fundamentals 1

Android Fundamentals 1 Android Fundamentals 1 What is Android? Android is a lightweight OS aimed at mobile devices. It is essentially a software stack built on top of the Linux kernel. Libraries have been provided to make tasks

More information

Developers. Saturday, June 30, 2012

Developers. Saturday, June 30, 2012 Developers 1 Security and Privacy in Android Apps Jon Larimer - Security Engineer, Android Team Kenny Root - Software Engineer, Android Team 2 Another privacy breach in the news... At least it wasn t your

More information

Tutorial #1. Android Application Development Advanced Hello World App

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

More information

An Introduction to Android Application Development. Serdar Akın, Haluk Tüfekçi

An Introduction to Android Application Development. Serdar Akın, Haluk Tüfekçi An Introduction to Android Application Serdar Akın, Haluk Tüfekçi ARDIC ARGE http://www.ardictech.com April 2011 Environment Programming Languages Java (Officially supported) C (Android NDK Needed) C++

More information

Android app development course

Android app development course Android app development course Unit 4- + Performing actions in the background. Services, AsyncTasks, Loaders. Notificacions, Alarms 1 Services A Service Is an app component that can perform long-running

More information

Beginning Android Application Development

Beginning Android Application Development Beginning Android Application Development Introduction... xv Chapter 1 Getting Started with Android Programming......................... 1 Chapter 2 Activities and Intents...27 Chapter 3 Getting to Know

More information

Login with Amazon Getting Started Guide for Android. Version 2.0

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

More information

Android Environment SDK

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

More information

<User s Guide> Plus Viewer. monitoring. Web

<User s Guide> Plus Viewer. monitoring. Web Plus Viewer 1 < Plus Viewer (web ) > 1-1 Access Method The user can access the DVR system through the web. 1 Enter the IP for the DVR system in the address field of the web browser. 2 The

More information

Tutorial on OpenCV for Android Setup

Tutorial on OpenCV for Android Setup Tutorial on OpenCV for Android Setup EE368/CS232 Digital Image Processing, Spring 2015 Macintosh Version For personal Android devices (advised: Android 3.0 or higher) Introduction In this tutorial, we

More information

MMI 2: Mobile Human- Computer Interaction Android

MMI 2: Mobile Human- Computer Interaction Android MMI 2: Mobile Human- Computer Interaction Android Prof. Dr. michael.rohs@ifi.lmu.de Mobile Interaction Lab, LMU München Android Software Stack Applications Java SDK Activities Views Resources Animation

More information

How to Create an Android Application using Eclipse on Windows 7

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

More information