1. 2 3 The Doodlz app enables you to paint by dragging one or more fingers across the screen. The app provides options for setting the drawing color.

Slides:



Advertisements
Similar presentations
INTRODUCTION TO ADOBE FLASH CS4
Advertisements

Basic 2D Graphics in Android. Android Graphics Programming There are many ways to do graphics programming in Android – 2D vs. 3D – static vs. dynamic.
App Development on Android
The Creative Art of Programming © Copyright 2014 Barbara Ann Walters. All Rights Reserved.
Filip Debelić What is it? Android is a mobile operating system (OS) based on the Linux kernel and currently developed by Google Android,
Android Application Development. Agenda  Android Business Model  Why Android  Android application market space  Market Segments & Target customers.
A Guide to Oracle9i1 Creating an Integrated Database Application Chapter 8.
Android sensors.
BoardMaker Ver 6 Creating Interactive Activities for the Classroom.
Graphics Standard Grade Computing. Graphics Package n A graphics package is another General Purpose Package. n It is used to draw pictures on the monitor.
1 Introduction to Human Computer Interaction  Livecode Overview  Based on Livecode User Guide from RunRev Ltd. (2010) 
By: Zaiba Mustafa Copyright ©
CS378 - Mobile Computing Sensing and Sensors. Sensors "I should have paid more attention in Physics 41" Most devices have built in sensors to measure.
CS378 - Mobile Computing Sensing and Sensors. Sensors "I should have paid more attention in Physics 41" Most devices have built in sensors to measure.
CS 104 October 26, 2011 App Inventor. Agenda Discuss guest speakers Discuss quiz Finish Paint Pot Discuss concepts from Chapters 2 & 3 Mole Mash (if time.
 Understanding an activity  Starting an activity  Passing information between activities  Understanding intents  Understanding the activity lifecycle.
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.
Lecture # 9 Hardware Sensor. Topics 2  SensorManger & Sensor  SensorEvent & SensorEventListener  Example Application.
Interactive Input Methods & Graphical User Input
Sensing. Possible sensors on devices – Documented in SensorEvent class Accelerometer (m/s 2 ) – acceleration in x, y, z axes Magnetic Field (micro Tesla)
Favorite Twitter® Searches App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Android How to Program Presented by Thomas Bucag, Rob Goodfellowe, Samantha Tomeï © by Pearson Education, Inc. All Rights Reserved.
CGMB214: Introduction to Computer Graphics
Chapter 14. Copyright 2003, Paradigm Publishing Inc. CHAPTER 14 BACKNEXTEND 14-2 LINKS TO OBJECTIVES Add Borders with Borders Button Add Borders with.
Doodlz App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® ® 1 INTRODUCTION TO ADOBE FLASH PROFESSIONAL CS5.
COMPREHENSIVE Windows Tutorial 7 Managing Multimedia Files.
Creating Multimedia Interaction with Windows Media Technologies 7.
1 CMSC 628: Introduction to Mobile Computing Nilanjan Banerjee Introduction to Mobile Computing University of Maryland Baltimore County
10/10/2015 E.R.Edwards 10/10/2015 Staffordshire University School of Computing Introduction to Android Overview of Android System Android Components Component.
SpotOn Game App Android How to Program © by Pearson Education, Inc. All Rights Reserved.
Sensors – Part I SE 395/595.
Android – Fragments L. Grewe.
Getting started BASICSToolsSmart Ink Notebook software.
Chapter 13: AutoCAD DesignCenter. After completing this Chapter, you will be able to use the following: Overview of DesignCenter Container, Content Type.
Splatter! ALPHA Presentation By: David Kikuta March 29, 2011.
Graphics Concepts CS 2302, Fall /17/20142 Drawing in Android.
Sensors in android. App being more applicable Keeping track of your heart beat while jogging. Pointing the phone camera towards the night sky to know.
Sensors For Mobile Phones  Ambient Light Sensor  Proximity Sensor  GPS Receiver Sensor  Gyroscope Sensor  Barometer Sensor  Accelerometer Sensor.
Lecture 4: Sensors Topics: Motion, Position, and Environmental Sensors Date: Feb 11, 2016.
®® Microsoft Windows 7 Windows Tutorial 7 Managing Multimedia Files.
Basic 2D Graphics in Android. Android Graphics Programming There are many ways to do graphics programming in Android – 2D vs. 3D – static vs. dynamic.
丁建文 國立高雄應用科大資管系副教授 兼任計網中心軟體發展組組長 跨平台行動應用軟體開發技術 : HTML5 & Mobile JavaScript Framework 暨南大學.
CHAPTER 7 TouchGestures. Chapter objectives: To code the detection of and response to touch gestures. Patterns of common touches to create touch gestures.
CPE 490/590 – Smartphone Development
The Flag Quiz app tests your ability to correctly identify 10 flags from various countries and territories.
1. 2 The Address Book app provides convenient access to contact information that’s stored in a SQLite database on the device. You can: scroll through.
Editing a Twitter search. Viewing search results in a browser.
Whittier STEM Fair 2016 CARLI PECORARO’S ANDROID APP PROJECT.
Android Android Sensors Android Sensors: – Accelerometer – Gravity sensor – Linear Acceleration sensor – Magnetic Field sensor – Orientation.
Sensors in Android.
Vijay Kumar Kolagani Dr. Yingcai Xiao
Lecture 4: Sensors Topics: Motion, Position, and Environmental Sensors
Lecture 4: Sensors Topics: Motion, Position, and Environmental Sensors.
Technologies Overview Media files, such as the sounds, are placed in the app’s resource folder res/raw. When an Activity is shut down, its Fragment.
Activities and Intents
Android Layouts 24 July 2018 S.RENUKADEVI/AP/SCD/ANDROID LAYOUTS 1.
Creation of an Android App By Keith Lynn
Mobile Application Development Chapter 4 [Android Navigation and Interface Design] IT448-Fall 2017 IT448- Fall2017.
Goal : Develop a software that converts arm movements into messages
Vijay Kumar Kolagani Dr. Yingcai Xiao
CS499 – Mobile Application Development
Vijay Kumar Kolagani Dr. Yingcai Xiao
INTRODUCTION TO ADOBE FLASH CS4
Interactive Input Methods & Graphical User Input
Cannon Game App Android How to Program
Windows Tutorial 7 Managing Multimedia Files
Interactive Input Methods & Graphical User Input
Android Programming Tutorial
Lecture 4: Sensors Topics: Motion, Position, and Environmental Sensors.
Presentation transcript:

1

2

3 The Doodlz app enables you to paint by dragging one or more fingers across the screen. The app provides options for setting the drawing color and line width. clear the screen save the current drawing on your device, and print the current drawing.

Technologies Overview A Fragment’s lifecycle is tied to that of its parent Activity. This app uses Fragment lifecycle methods onResume and onPause. onResume method is called when a Fragment is on the screen and ready for the user to interact with it. MainActivityFragment overrides onResume to enable listening for the accelerometer events so the user can shake the device to erase a drawing. Using SensorManager to Listen for Accelerometer Events. shake the device to erase a drawing Supported sensors: gravity, gyroscope, light, linear acceleration, magnetic field, orientation, pressure, proximity, rotation vector and temperature.

Technologies Overview Sensor’s sensor-type constants to specify the sensors for which your app should receive data. Define three subclasses of DialogFragment  ColorDialogFragment displays an AlertDialog with a custom View containing GUI components for previewing and selecting a new ARGB drawing color. LineWidthDialogFragment displays an AlertDialog with a custom View containing a GUI for previewing and selecting the line thickness. EraseImageDialogFragment displays a standard AlertDialog asking the user to confirm whether the entire image should be erased.

Technologies Overview onAttach—The first Fragment lifecycle method called when a Fragment is attached to a parent Activity. onDetach—The last Fragment lifecycle method called when a Fragment is about to be detached from a parent Activity. Drawing with Canvas, Paint and Bitmap Use methods of class Canvas to draw text, lines and circles. Canvas methods draw on a View’s Bitmap (both from package android.graphics). You can associate a Canvas with a Bitmap, then use the Canvas to draw on the Bitmap, which can then be displayed on the screen. A Bitmap also can be saved into a file.

Technologies Overview Processing Multiple Touch Events and Storing Lines in Paths The app stores the information for each individual finger as a Path object that represents line segments and curves. Process touch events by overriding the View method onTouchEvent. method receives a MotionEvent (package android. view) that contains the type of touch event that occurred and the ID of the finger (known as a pointer) that generated the event.

A ContentResolver (package android.content) enables the app to read data from and store data on a device. the method insertImage of class MediaStore.Images.Media to save an image into the device’s Photos app. The MediaStore manages media files (images, audio and video) stored on a device. class PrintHelper from Android’s printing framework to print the current drawing. Technologies Overview

This app consists of six classes: MainActivity (discussed below)—This is the parent Activity for the app’s Fragments. MainActivityFragment: Manages the DoodleView and accelerometer event handling. DoodleView: Provides the drawing, saving and printing capabilities. ColorDialogFragment: A DialogFragment that’s displayed when the user chooses the option to set the drawing color. LineWidthDialogFragment : DialogFragment that’s displayed when the user chooses the option to set the line width. EraseImageDialogFragment : A DialogFragment that’s displayed when the user chooses the option to erase, or shakes the device to erase, the current drawing. Technologies Overview

Code Review