Tutorial: Programming in Java for Android Development
|
|
|
- Melissa Weaver
- 10 years ago
- Views:
Transcription
1 Tutorial: Programming in Java for Android Development Adam C. Champion and Dong Xuan CSE 4471: Information Security Autumn 2013 Based on material from C. Horstmann [1], J. Bloch [2], C. Collins et al. [4], M.L. Sichitiu (NCSU), V. Janjic (Imperial College London), CSE 2221 (OSU), and other sources
2 Outline Getting Started Java: The Basics Java: Object Oriented Programming Android Programming
3 Getting Started (1) Need to install Java Development Kit (JDK) to write Java (and Android) programs Do not install Java Runtime Environment (JRE); JDK and JRE are different! Can download the JDK for your OS at Alternatively, for OS X, Linux: OS X: Open /Applications/Utilities/Terminal.app Type javac at command line Install Java when prompt appears Linux: Type sudo apt get install default jdk at command line (Debian, Ubuntu) Other distributions: consult distribution s documentation
4 Install!
5 Getting Started (2) After installing JDK, download Android SDK from Simplest: download and install Android Developer Tools (ADT) bundle (including Android SDK) for your OS Alternatives: Download/install Android Studio (beta) from this site (based on IntelliJ IDEA) Install Android SDK tools by themselves, then install ADT for Eclipse separately (from this site) We ll use ADT with SDK (easiest)
6 Install!
7 Getting Started (3) Unzip ADT package to directory <adt bundle os>, then run <adt bundle os>/eclipse/eclipse app. You should see this:
8 Getting Started (4) Go to Eclipse preferences (Window Preferences or ADT Preferences), select Android tab Make sure the Android SDK path is correct (<adt bundle os>/sdk) Strongly recommend testing with real Android device Android emulator: very slow Install USB drivers for your Android device
9 Getting Started (5) Bring up the Android SDK Manager Recommended: Install Android 2.2, APIs and 4.x API Do not worry about Intel x86 Atom, MIPS system images In Eclipse, click Window Show View Other and select views Android Devices, Android LogCat Now you re ready for Android development!
10 Outline Getting Started Java: The Basics Java: Object Oriented Programming Android Programming
11 Java Programming Language Java: general purpose language designed so developers write code once, it runs anywhere The key: Java Virtual Machine (JVM) Program code compiled to JVM bytecode JVM bytecode interpreted on JVM We ll focus on Java 5 (Android uses this). See chapters 1 7 in [1].
12 Our First Java Program (1) public class HelloWorld public static void main(string[] args) System.out.println( Hello world! ); Don t forget to match curly braces, or semicolon at the end! In Eclipse: File New Java Project, name project HelloWorld (no quotes), click Finish. Open HelloWorld in Package Explorer. Right click src directory, select New Class, and create a class HelloWorld with a main() method. To run the program, right click HelloWorld project, click Run As
13 Our First Java Program (2) Right click, New Class
14 Explaining the Program Every.java source file contains one class We create a class HelloWorld that greets user The class HelloWorld must have the same name as the source file HelloWorld.java Our class has public scope, so other classes can see it We ll talk more about classes and objects later Every Java program has a method main() that executes the program Method signature must be exactly public static void main(string[] args)... This means: (1) main() is visible to other methods; (2) there is only one main() method in the class; and (3) main() has one argument (args, an array of String variables) Java thinks main(), Main(), mian() are different methods Every Java method has curly braces, surrounding its code Every statement in Java ends with a semicolon, e.g., System.out.println( Hello world! ); Program prints Hello world! to the console, then quits
15 Basic Data Types (1) Java variables are instances of mathematical types Variables can store (almost) any value their type can have Example: the value of a boolean variable can be either true or false because any (mathematical) boolean value is true or false Caveats for integer, floating point variables: their values are subsets of values of mathematical integers, real numbers. Cannot assign mathematical to integer variable (limited range) or mathematical 2 to a floating point variable (limited precision; irrational number). Variable names must start with lowercase letter, contain only letters, numbers, _ Variable declaration: boolean b = true; Later in the program, we might assign false to b: b = false; Java strongly suggests that variables be initialized at the time of declaration, e.g., boolean b; gives a compiler warning (null pointer) Constants defined using final keyword, e.g., final boolean falsebool = FALSE;
16 Basic Data Types (2) Java s primitive data types: [5] Primitive type Size Minimum Maximum Wrapper type boolean 1 bit N/A N/A Boolean char 16 bit Unicode 0 Unicode Character byte 8 bit Byte short 16 bit Short int 32 bit Integer long 64 bit Long float 32 bit IEEE 754 IEEE 754 Float double 64 bit IEEE 754 IEEE 754 Double Note: All these types are signed, except char.
17 Basic Data Types (3) Sometimes variables need to be cast to another type, e.g., if finding average of integers: int intone = 1, inttwo = 2, intthree = 3, numints = 2; double doubone = (double)intone, doubtwo = (double)myinttwo, doubthree = (double)intthree; double avg = (doubone + doubtwo + doubthree)/(double)numints; Math library has math operations like sqrt(), pow(), etc. String: immutable type for sequence of characters Every Java variable can be converted to String via tostring() The + operation concatenates Strings with other variables Let str be a String. We can find str s length (str.length()), substrings of str (str.substring()), and so on [6]
18 Basic Data Types (4) A literal is a fixed value of a variable type TRUE, FALSE are boolean literals A, \t, \, and \u03c0 are char literals (escaped tab, quote characters, Unicode value for \pi) 1, 0, 035, 0x1a are int literals (last two are octal and hexadecimal) 0.5, 1.0, 1E6, 6.023E23 are double literals At OSU, Hello world! are String literals Comments: Single-line: // some comment to end of line Multi-line: /* comments span multiple lines */
19 Common Operators in Java String boolean char int double! && * / % * / < > <= >= ==!= < > <= >= ==!= < > Notes: Compare String objects using the equals() method, not == or!= && and use short-circuit evaluation. To see this, say boolean canpigsfly = FALSE and we evaluate (canpigsfly && <some Boolean expression>). Since canpigsfly is FALSE, the second part of the expression won t be evaluated. The second operand of % (integer modulus) must be positive. Don t compare doubles for equality. Instead, define a constant like so: final double EPSILON = 1E- 6; // or some other threshold // check if Math.abs(double1 double2) < EPSILON
20 Control Structures: Decision (1) Programs don t always follow straight line execution; they branch based on certain conditions Java decision idioms: if-then-else, switch if-then-else idiom: if (<some Boolean expression>) // take some action else if (<some other Boolean expression) // take some other action else // do something else
21 Control Structures: Decision (2) Example: final double OLD_DROID = 2.0, final double NEW_DROID = 4.0; double mydroid = 4.1; if (mydroid < OLD_DROID) System.out.println( Antique! ); else if (mydroid > NEW_DROID) System.out.println( Very modern! ); else System.out.println( Your device: barely supported. ); Code prints Very modern! to the screen. What if mydroid == 1.1? mydroid == 2.3?
22 Control Structures: Decision (3) Example two: final double JELLY_BEAN = 4.1, final double ICE_CREAM = 4.0; final double EPSILON = 1E- 6; double mydroid = 4.1; if (mydroid > ICE_CREAM) if (Math.abs(myDroid ICE_CREAM) < EPSILON) System.out.println( Ice Cream Sandwich ); else System.out.println( Jelly Bean ); else System.out.println( Old version ); Code prints Jelly Bean to screen. Note nested if-then-else, EPSILON usage.
23 Control Structures: Decision (4) Other idiom: switch Only works when comparing an int or boolean variable against a fixed set of alternatives Example: int api = 10; switch (api) case 3: System.out.println( Cupcake ); break; case 4: System.out.println( Donut ); break; case 7: System.out.println( Éclair ); break; case 8: System.out.println( Froyo ); break; case 10: System.out.println( Gingerbread ); break; case 11: System.out.println( Honeycomb ); break; case 15: System.out.println( Ice Cream Sandwich ); break; case 16: System.out.println( Jelly Bean ); break; default: System.out.println( Other ); break;
24 Control Structures: Iteration (1) Often, blocks of code should loop while a condition holds (or fixed # of times) Java iteration idioms: while, do-while, for While loop: execute loop as long as condition is true (checked each iteration) Example: String str = aaaaa ; int minlength = 10; while (str.length() < minlength) str = str + a ; System.out.println(str); Loop executes 5 times; code terminates when str = aaaaaaaaaa Notice: if the length of str was minlength, the while loop would not execute
25 Control Structures: Iteration (2) While Loop String str = aaaaaaaaaa ; int minlength = 10; while (str.length() < minlength) str = str + a ; System.out.println(str); Do-While Loop String str = aaaaaaaaaa ; int minlength = 10; do str = str + a ; while (str.length() < minlength) System.out.println(str); Unlike the while loop, the do-while loop executes at least once so long as condition is true. The while loop prints aaaaaaaaaa whereas the do-while loop prints aaaaaaaaaaa (11 as)
26 Control Structures: Iteration (3) The for loop has the following structure: for (<expression1>; <expression2>; <expression3>)... Semantics: <expression1> is loop initialization (run once) <expression2> is loop execution condition (checked every iteration) <expression3> is loop update (run every iteration) Example: int i; for (i = 0; i < 10; i++) System.out.println( i = + i); System.out.println( i = + i); What do you think this code does?
27 Methods and Design-by-Contract (1) Design your own methods to perform specific, well-defined tasks Each method has a signature: public static ReturnType method(paramtype1 param1, paramtypen paramn) // perform certain task Example: a method to compute area of rectangle: public static double findrectarea(double length, double width) return length * width; Each method has a precondition and a postcondition Precondition: constraints method s caller must satisfy to call method Postcondition: guarantees method provides if preconditions are met For our example: Precondition: length > 0.0, width > 0.0 Postcondition: returns length width (area of rectangle)
28 Methods and Design-by-Contract (2) In practice, methods are annotated via JavaDoc, e.g., /** Compute area of length Length of width Width of Area of rectangle */ Methods called from main() (which is static) need to be defined static too Some methods may not return anything (void)
29 Array Data Structure Array: fixed-length sequence of variable types; cannot change length at run-time Examples: final int NUMSTUDENTS = 10; String[] students; // Declaration String[] students = new String[NUMSTUDENTS]; // Declaration and initialization String[] morestudents = Alice, Bob, Rohit, Wei ; // Declaration and explicit initialization System.out.println(moreStudents.length) // Prints 4 Enhanced for loop: executed for each element in array Example: for (String student: morestudents) System.out.println(student +, ); Prints Alice, Bob, Rohit, Wei, to screen Array indices are numbered 0,, N 1; watch for off-by-one errors! morestudents[0] is Alice ; morestudents[3] is Wei
30 Two-Dimensional Arrays We can have two-dimensional arrays. Example: final int ROWS = 3; final int COLUMNS = 3; char[][] tictactoe = new char[rows][columns]; // declare for (int i = 0; i < ROWS; i++) for (int j = 0; j < COLUMNS; j++) tictactoe[i][j] = _ ; // Initialize to blank // Tic- tac- toe logic goes here (with X s, O s) tictactoe.length returns number of rows; tictactoe[0].length returns number of columns Higher-dimensional arrays are possible too
31 Parameterized Data Structures We can define data structures in terms of an arbitrary variable type (call it Item). ArrayList<Item>, a variable-length array that can be modified at run-time. Examples: ArrayList<String> arrstrings = new ArrayList<String>(); ArrayList<Double> arrdoubles = new ArrayList<Double>(); arrstrings.add( Alice ); arrstrings.add( Bob ); arrstrings.add( Rohit ); arrstrings.add( Wei ); String str = arrstrings.get(1); // str becomes Bob arrstrings.set(2, Raj ); // Raj replaces Rohit System.out.println(arrStrings.size()); // prints 4 Notice: Need to call import java.util.arraylist; at beginning of program Off-by-one indexing: cannot call arrstrings.get(4); Auto-boxing: we cannot create an ArrayList of doubles. We need to replace double with wrapper class Double. (Recall the primitive data types table) Other parameterized data types include Lists, Sets, Maps, Stacks, Queues, Trees (see chapters in [1])
32 Exception Handling (1) If we had called arrstrings.get(4), we would have an error condition The JVM throws an IndexOutOfBounds exception, halts execution
33 Exception Handling (2) We handle exceptions using the try-catch-finally structure: try // Code that could trigger an exception catch (IndexOutOfBoundsException e) // Or another Exception // Code that responds to exception, e.g., e.printstacktrace(); finally // Code that executes regardless of whether exception occurs There can be many catch blocks for different Exceptions, but there is only one try block and one (optional) finally block. (See Section 7.4 in [1] for the full hierarchy of Exceptions) Exceptions always need to be caught and reported, especially in Android
34 Outline Getting Started Java: The Basics Java: Object Oriented Programming Android Programming
35 Objects and Classes (1) Classes serve as blueprints that describe the states and behaviors of objects, which are actual instances of classes For example, a Vehicle class describes a motor vehicle s blueprint: States: on/off, driver in seat, fuel in tank, speed, etc. Behaviors: startup, shutdown, drive forward, shift transmission, etc. There are many possible Vehicles, e.g., Honda Accord, Mack truck, etc. These are instances of the Vehicle blueprint Many Vehicle states are specific to each Vehicle object, e.g., on/off, driver in seat, fuel remaining. Other states are specific to the class of Vehicles, not any particular Vehicle (e.g., keeping track of the last Vehicle ID # assigned). These correspond to instance fields and static fields in a class. Notice: we can operate a vehicle without knowing its implementation under the hood. Similarly, a class makes public instance methods by which objects of this class can be manipulated. Other methods apply to the set of all Vehicles (e.g., set min. fuel economy). These correspond to static methods in a class
36 Objects and Classes (2) public class Vehicle // Instance fields (some omitted for brevity) private boolean ison = false; private boolean isdriverinseat = false; private double fuelintank = 10.0; private double speed = 0.0; // Static fields private static String lastvin = 4A4AP3AU*DE ; // Instance methods (some omitted for brevity) public Vehicle() // Constructor public void startup() public void shutoff() public void getisdriverinseat() // getter, setter methods public void setisdriverinseat() private void managemotor() // More private methods // Static methods public static void setvin(string newvin)
37 Objects and Classes (3) How to use the Vehicle class: First, create a new object via constructor Vehicle(), e.g., Vehicle mycar = new Vehicle(); Change Vehicle states, e.g., startup() or shutoff() the Vehicle You can imagine other use cases Mark a new Vehicle s ID number (VIN) as taken by calling Vehicle.setVin( ) Caveat: VINs more complex than this (simple) implementation [7] Notes: Aliasing: If we set Vehicle mytruck = mycar, both mycar and mytruck point to the same variable. Better to perform deep copy of mycar and store the copy in mytruck null reference: refers to no object, cannot invoke methods on null Implicit parameter and the this reference Access control: public, protected, private
38 Inheritance (1) Types of Vehicles: Motorcycle, Car, Truck, etc. Types of Cars: Sedan, Coupe, SUV. Types of Trucks: Pickup, Flatbed. Induces inheritance hierarchy Subclasses inherit fields/methods from superclasses. Subclasses can add new fields/methods, override those of parent classes For example, Motorcycle s driveforward() method differs from Truck s driveforward() method
39 Inheritance (2) Inheritance denoted via extends keyword public class Vehicle public void driveforward (double speed) // Base class method public class Motorcycle extends Vehicle public void driveforward (double speed) // Apply power
40 Inheritance (3) public class Truck extends Vehicle private boolean useawd = true; public Truck(boolean useawd) this.useawd = useawd; public void driveforward(double speed) if (useawd) // Apply power to all wheels else // Apply power to only front/back wheels
41 Polymorphism Suppose we create Vehicles and invoke the driveforward() method: Vehicle vehicle = new Vehicle(); Vehicle motorcycle = new Motorcycle(); Truck truck1 = new Truck(true); Vehicle truck2 = new Truck(false); // Code here to start vehicles vehicle.driveforward(5.0); motorcycle.driveforward(10.0); truck1.driveforward(15.0); truck2.driveforward(10.0); For vehicle, Vehicle s driveforward() method is invoked For motorcycle, Motorcycle s driveforward() method is invoked With truck1 and truck2, Truck s driveforward() function is invoked (with all-wheel drive for truck1, not for truck2). Dynamic method lookup: Java looks at objects actual types in determining which method to invoke Polymorphism: feature where objects of different subclasses can be treated the same way. All Vehicles driveforward() regardless of (sub)class.
42 The Object Class Every class in Java is a subclass of Object Important methods in Object: tostring(): Converts the Object into a String representation equals(): Compares contents of Objects to see if they re the same hashcode(): Hashes the Object to a fixed-length String, useful for data structures like HashMap, HashSet If you create your own class, you should override tostring() and hashcode()
43 Interfaces Java interfaces abstractly specify methods to be implemented Intuition: decouple method definitions from implementations (clean design) Interfaces, implementations denoted by interface, implements keywords Example: public interface Driveable public void driveforward(double speed); public class Vehicle implements Driveable public void driveforward(double speed) // implementation public class Motorcycle extends Vehicle implements Driveable public void driveforward(double speed) // implementation
44 The Comparable Interface Comparing Objects is important, e.g., sorting in data structures The Comparable interface compares two Objects, e.g., a and b: public interface Comparable int compareto(object otherobject); a.compareto(b) returns negative integer if a comes before b, 0 if a is the same as b, and a positive integer otherwise In your classes, you should implement Comparable to facilitate Object comparison
45 Object-Oriented Design Principles Each class should represent a single concept Don t try to fit all functionality into a single class Consider a class per noun in problem description Factor functionality into classes, interfaces, etc. that express the functionality with minimal coupling For software projects, start from use cases (how customers will use software: high level) Then identify classes of interest In each class, identify fields and methods Class relationships should be identified: is-a (inheritance), has-a (aggregation), implements interface, etc. Packages provide class organization mechanism Examples: java.lang.*, java.util.*, etc. Critical for organizing large numbers of classes! All classes in a package can see each other (scope)
46 Outline Getting Started Java: The Basics Java: Object Oriented Programming Android Programming
47 Introduction to Android Popular mobile device OS: 52% of U.S. smartphone market [8] Developed by Open Handset Alliance, led by Google Google claims 900,000 Android device activations [9] Source: [8]
48
49 Android Highlights (1) Android apps execute on Dalvik VM, a clean-room implementation of JVM Dalvik optimized for efficient execution Dalvik: register-based VM, unlike Oracle s stack-based JVM Java.class bytecode translated to Dalvik EXecutable (DEX) bytecode, which Dalvik interprets
50 Android Highlights (2) Android apps written in Java 5 Actually, a Java dialect (Apache Harmony) Everything we ve learned still holds Apps use four main components: Activity: A single screen that s visible to user Service: Long-running background part of app (not separate process or thread) ContentProvider: Manages app data (usually stored in database) and data access for queries BroadcastReceiver: Component that listens for particular Android system events, e.g., found wireless device, and responds accordingly
51 App Manifest Every Android app must include an AndroidManifest.xml file describing functionality The manifest specifies: App s Activities, Services, etc. Permissions requested by app Minimum API required Hardware features required, e.g., camera with autofocus External libraries to which app is linked, e.g., Google Maps library
52 Activity Lifecycle Activity: key building block of Android apps Extend Activity class, override oncreate(), onpause(), onresume() methods Dalvik VM can stop any Activity without warning, so saving state is important! Activities need to be responsive, otherwise Android shows user App Not Responsive warning: Place lengthy operations in Threads, AsyncTasks Source: [12]
53 App Creation Checklist If you own an Android device: Ensure drivers are installed Enable developer options on device under Settings, specifically USB Debugging Android 4.2, 4.3: Go to Settings About phone, press Build number 7 times to enable developer options For Eclipse: Make sure you ve enabled LogCat, Devices views. Click a connected device in Devices to see its log Programs should log states via android.util.log s Log.d(APP_TAG_STR, debug ), where APP_TAG_STR is a final String tag denoting your app Other commands: Log.e() (error); Log.i() (info); Log.w() (warning); Log.v() (verbose) same parameters
54 Creating Android App (1) Creating Android app project in Eclipse: Go to File New Other, select Android Application Project (Android folder), click Next Enter app, project name Choose package name using reverse URL notation, e.g., edu.osu.myapp Select APIs for app, then click Next
55 Creating Android App (2) Click Next for the next two windows You ll see the Create Activity window. Select Blank Activity and click Next. Enter Activity s name and click Finish This automatically creates Hello World app
56 Deploying the App Two choices for deployment: Real Android device Android virtual device Plug in your real device; otherwise, create an Android virtual device Emulator is slow. Try Intel accelerated version, or perhaps Run the app: right click project name, select Run As Android Application
57 Underlying Source Code src/ /MainActivity.java package edu.osu.helloandroid; import android.os.bundle; import android.app.activity; import android.view.menu; public class MainActivity extends protected void oncreate(bundle savedinstancestate) super.oncreate(savedinstancestate); public boolean oncreateoptionsmenu(menu menu) // Inflate the menu; this adds items to the action bar if it is present. getmenuinflater().inflate(r.menu.main, menu); return true;
58 Underlying GUI Code res/layout/activity_main.xml <RelativeLayout xmlns:android=" xmlns:tools=" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".mainactivity" > <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" /> </RelativeLayout> RelativeLayouts are quite complicated. See [13] for details
59 The App Manifest AndroidManifest.xml <?xml version="1.0" encoding="utf- 8"?> <manifest xmlns:android=" package="edu.osu.helloandroid" android:versioncode="1" android:versionname="1.0" > <uses- sdk android:minsdkversion="8" android:targetsdkversion="17" /> <application android:allowbackup="true" > <activity android:name="edu.osu.helloandroid.mainactivity" > <intent- filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent- filter> </activity> </application> </manifest>
60 A More Interesting App We ll now examine an app with more features: WiFi Tester (code on class website) Press a button, scan for WiFi access points (APs), display them
61 Underlying Source Code public void oncreate(bundle savedinstancestate) super.oncreate(savedinstancestate); setcontentview(r.layout.activity_wi_fi); // Set up WifiManager. mwifimanager = (WifiManager) getsystemservice(context.wifi_service); // Create listener object for Button. When Button is pressed, scan for // APs nearby. Button button = (Button) findviewbyid(r.id.button); button.setonclicklistener(new View.OnClickListener() public void onclick(view v) boolean scanstarted = mwifimanager.startscan(); ); // If the scan failed, log it. if (!scanstarted) Log.e(TAG, "WiFi scan failed..."); // Set up IntentFilter for "WiFi scan results available" Intent. mintentfilter = new IntentFilter(); mintentfilter.addaction(wifimanager.scan_results_available_action);
62 Underlying Source Code (2) Code much more complex First get system WifiManager Create listener Object for button that performs scans We register Broadcast Receiver, mreceiver, to listen for WifiManager s finished scan system event (expressed as Intent WifiManager.SCAN_RESULTS_ AVAILABLE_ACTION) Unregister Broadcast Receiver when leaving protected void onresume() super.onresume(); registerreceiver(mreceiver, protected void onpause() super.onpause(); unregisterreceiver(mreceiver);
63 The Broadcast Receiver private final BroadcastReceiver mreceiver = new public void onreceive(context context, Intent intent) ; String action = intent.getaction(); if (WifiManager.SCAN_RESULTS_AVAILABLE_ACTION.equals(action)) Log.e(TAG, "Scan results available"); List<ScanResult> scanresults = mwifimanager.getscanresults(); mapstr = ""; for (ScanResult result : scanresults) mapstr = mapstr + result.ssid + "; "; mapstr = mapstr + result.bssid + "; "; mapstr = mapstr + result.capabilities + "; "; mapstr = mapstr + result.frequency + " MHz;"; mapstr = mapstr + result.level + " dbm\n\n"; // Update UI to show all this information. settextview(mapstr);
64 User Interface Updating UI in code private void settextview(string str) TextView tv = (TextView) findviewbyid(r.id.textview); tv.setmovementmethod(new ScrollingMovementMethod()); tv.settext(str); This code simply has the UI display all collected WiFi APs, makes the text information scrollable UI Layout (XML) <LinearLayout xmlns:android=" res/android" xmlns:tools=" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"> <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/button" android:text="@string/button_text"/> <TextView android:id="@+id/header" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/ap_list" tools:context=".wifiactivity" android:textstyle="bold" android:gravity="center"> </TextView> <TextView android:layout_width="fill_parent" android:layout_height="fill_parent" tools:context=".wifiactivity" android:id="@+id/textview" android:scrollbars="vertical"> </TextView> </LinearLayout>
65 Android Programming Notes Android apps have multiple points of entry: no main() method Cannot sleep in Android During each entrance, certain Objects may be null Defensive programming is very useful to avoid crashes, e.g., if (!(myobj == null)) // do something Java concurrency techniques are required Don t block the main thread in Activities Implement long-running tasks such as network connections asynchronously, e.g., as AsyncTasks Recommendation: read [4]; chapter 20 [10]; [11] Logging state via android.util.log throughout app is essential when debugging (finding root causes) Better to have too many permissions than too few Otherwise, app crashes due to security exceptions! Remove unnecessary permissions before releasing app to public Event handling in Android GUIs entails many listener Objects
66 Concurrency: Threads (1) Thread: program unit (within process) executing independently Basic idea: create class that implements Runnable interface Runnable has one method, run(), that contains code to be executed Example: public class OurRunnable implements Runnable public void run() // run code Create a Thread object from Runnable and start() Thread, e.g., Runnable r = new OurRunnable(); Thread t = new Thread(r); t.start(); Problem: this is cumbersome unless Thread code is reused
67 Concurrency: Threads (2) Easier approach: anonymous inner classes, e.g., Thread t = new Thread(new Runnable( public void run() // code to run ); t.start(); Idiom essential for one-time network connections in Activities However, Threads can be difficult to synchronize, especially with UI thread in Activity. AsyncTasks are better suited for this
68 Concurrency: AsyncTasks AsyncTask encapsulates asynchronous task that interacts with UI thread in Activity: public class AsyncTask<Params, Progress, Result> protected Result doinbackground(paramtype param) // code to run in background publishprogress(progresstype progress); // UI return Result; protected void onprogressupdate(progresstype progress) // invoke method in Activity to update UI Extend AsyncTask with your own class Documentation at
69 Thank You Any questions?
70 References (1) 1. C. Horstmann, Big Java Late Objects, Wiley, Online: com.proxy.lib.ohio state.edu/book/ / J. Bloch, Effective Java, 2nd ed., Addison Wesley, Online: safaribooksonline.com.proxy.lib.ohio state.edu/book/programming/java/ S.B. Zakhour, S. Kannan, and R. Gallardo, The Java Tutorial: A Short Course on the Basics, 5th ed., Addison Wesley, Online: ohio state.edu/book/programming/java/ C. Collins, M. Galpin, and M. Kaeppler, Android in Practice, Manning, Online: state.edu/book/programming/android/ M.L. Sichitiu, 2011, javareview.ppt 6. Oracle, 7. Wikipedia, 8. Nielsen Co., Who s Winning the U.S. Smartphone Market?, 6 Aug. 2013, 9. Android Open Source Project,
71 References (2) B. Goetz, T. Peierls, J. Bloch, J. Bowbeer, D. Holmes, and D. Lea, Java Concurrency in Practice, Addison-Wesley, 2006, online at
Tutorial: Setup for Android Development
Tutorial: Setup for Android Development Adam C. Champion CSE 5236: Mobile Application Development Autumn 2015 Based on material from C. Horstmann [1], J. Bloch [2], C. Collins et al. [4], M.L. Sichitiu
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
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
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
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
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
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
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)
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/
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
Introduction to Android Programming (CS5248 Fall 2015)
Introduction to Android Programming (CS5248 Fall 2015) Aditya Kulkarni ([email protected]) August 26, 2015 *Based on slides from Paresh Mayami (Google Inc.) Contents Introduction Android
Basics. Bruce Crawford Global Solutions Manager
Android Development Basics Bruce Crawford Global Solutions Manager Android Development Environment Setup Agenda Install Java JDK Install Android SDK Add Android SDK packages with Android SDK manager Install
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
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
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
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
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 多 核 心 嵌 入 式 多 媒 體 系 統 設 計 與 實 作
Android 多 核 心 嵌 入 式 多 媒 體 系 統 設 計 與 實 作 Android Application Development 賴 槿 峰 (Chin-Feng Lai) Assistant Professor, institute of CSIE, National Ilan University Nov. 10 th 2011 2011 MMN Lab. All Rights Reserved
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 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
Android Introduction. Hello World. @2010 Mihail L. Sichitiu 1
Android Introduction Hello World @2010 Mihail L. Sichitiu 1 Goal Create a very simple application Run it on a real device Run it on the emulator Examine its structure @2010 Mihail L. Sichitiu 2 Google
AP Computer Science Java Subset
APPENDIX A AP Computer Science Java Subset The AP Java subset is intended to outline the features of Java that may appear on the AP Computer Science A Exam. The AP Java subset is NOT intended as an overall
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
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
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
Programming with Android
Praktikum Mobile und Verteilte Systeme Programming with Android Prof. Dr. Claudia Linnhoff-Popien Philipp Marcus, Mirco Schönfeld http://www.mobile.ifi.lmu.de Sommersemester 2015 Programming with Android
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
Free Java textbook available online. Introduction to the Java programming language. Compilation. A simple java program
Free Java textbook available online "Thinking in Java" by Bruce Eckel, 4th edition, 2006, ISBN 0131872486, Pearson Education Introduction to the Java programming language CS 4354 Summer II 2015 The third
Java Interview Questions and Answers
1. What is the most important feature of Java? Java is a platform independent language. 2. What do you mean by platform independence? Platform independence means that we can write and compile the java
Smartphone market share
Smartphone market share Gartner predicts that Apple s ios will remain the second biggest platform worldwide through 2014 despite its share deceasing slightly after 2011. Android will become the most popular
Crash Course in Java
Crash Course in Java Based on notes from D. Hollinger Based in part on notes from J.J. Johns also: Java in a Nutshell Java Network Programming and Distributed Computing Netprog 2002 Java Intro 1 What is
Free Java textbook available online. Introduction to the Java programming language. Compilation. A simple java program
Free Java textbook available online "Thinking in Java" by Bruce Eckel, 4th edition, 2006, ISBN 0131872486, Pearson Education Introduction to the Java programming language CS 4354 Summer II 2014 Jill Seaman
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
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
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
Android Application Development Course Program
Android Application Development Course Program Part I Introduction to Programming 1. Introduction to programming. Compilers, interpreters, virtual machines. Primitive data types, variables, basic operators,
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
Fundamentals of Java Programming
Fundamentals of Java Programming This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and exclusive use by instructors
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
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.
By sending messages into a queue, we can time these messages to exit the cue and call specific functions.
Mobile App Tutorial Deploying a Handler and Runnable for Timed Events Creating a Counter Description: Given that Android Java is event driven, any action or function call within an Activity Class must
Mobile Application Development Android
Mobile Application Development Android MTAT.03.262 Satish Srirama [email protected] Goal Give you an idea of how to start developing Android applications Introduce major Android application concepts
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
Java (12 Weeks) Introduction to Java Programming Language
Java (12 Weeks) Topic Lecture No. Introduction to Java Programming Language 1 An Introduction to Java o Java as a Programming Platform, The Java "White Paper" Buzzwords, Java and the Internet, A Short
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
Java Crash Course Part I
Java Crash Course Part I School of Business and Economics Institute of Information Systems HU-Berlin WS 2005 Sebastian Kolbe [email protected] Overview (Short) introduction to the environment Linux
SDK Quick Start Guide
SDK Quick Start Guide Table of Contents Requirements...3 Project Setup...3 Using the Low Level API...9 SCCoreFacade...9 SCEventListenerFacade...10 Examples...10 Call functionality...10 Messaging functionality...10
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
Java 6 'th. Concepts INTERNATIONAL STUDENT VERSION. edition
Java 6 'th edition Concepts INTERNATIONAL STUDENT VERSION CONTENTS PREFACE vii SPECIAL FEATURES xxviii chapter i INTRODUCTION 1 1.1 What Is Programming? 2 J.2 The Anatomy of a Computer 3 1.3 Translating
Handout 1. Introduction to Java programming language. Java primitive types and operations. Reading keyboard Input using class Scanner.
Handout 1 CS603 Object-Oriented Programming Fall 15 Page 1 of 11 Handout 1 Introduction to Java programming language. Java primitive types and operations. Reading keyboard Input using class Scanner. Java
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
Android Development. http://developer.android.com/develop/ 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系
Android Development http://developer.android.com/develop/ 吳 俊 興 國 立 高 雄 大 學 資 訊 工 程 學 系 Android 3D 1. Design 2. Develop Training API Guides Reference 3. Distribute 2 Development Training Get Started Building
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
Java Application Developer Certificate Program Competencies
Java Application Developer Certificate Program Competencies After completing the following units, you will be able to: Basic Programming Logic Explain the steps involved in the program development cycle
Android Programming and Security
Android Programming and Security Dependable and Secure Systems Andrea Saracino [email protected] Outlook (1) The Android Open Source Project Philosophy Players Outlook (2) Part I: Android System
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)
Hacking your Droid ADITYA GUPTA
Hacking your Droid ADITYA GUPTA adityagupta1991 [at] gmail [dot] com facebook[dot]com/aditya1391 Twitter : @adi1391 INTRODUCTION After the recent developments in the smart phones, they are no longer used
060010702 Mobile Application Development 2014
Que 1: Short question answer. Unit 1: Introduction to Android and Development tools 1. What kind of tool is used to simulate Android application? 2. Can we use C++ language for Android application development?
How To Develop An Android App On An Android Device
Lesson 2 Android Development Tools = Eclipse + ADT + SDK Victor Matos Cleveland State University Portions of this page are reproduced from work created and shared by Googleand used according to terms described
Computing Concepts with Java Essentials
2008 AGI-Information Management Consultants May be used for personal purporses only or by libraries associated to dandelon.com network. Computing Concepts with Java Essentials 3rd Edition Cay Horstmann
Android Developer Fundamental 1
Android Developer Fundamental 1 I. Why Learn Android? Technology for life. Deep interaction with our daily life. Mobile, Simple & Practical. Biggest user base (see statistics) Open Source, Control & Flexibility
Getting started with Android and App Engine
Getting started with Android and App Engine About us Tim Roes Software Developer (Mobile/Web Solutions) at inovex GmbH www.timroes.de www.timroes.de/+ About us Daniel Bälz Student/Android Developer at
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:...
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
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
Getting Started with the Internet Communications Engine
Getting Started with the Internet Communications Engine David Vriezen April 7, 2014 Contents 1 Introduction 2 2 About Ice 2 2.1 Proxies................................. 2 3 Setting Up ICE 2 4 Slices 2
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
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
Java Programming Fundamentals
Lecture 1 Part I Java Programming Fundamentals Topics in Quantitative Finance: Numerical Solutions of Partial Differential Equations Instructor: Iraj Kani Introduction to Java We start by making a few
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
Android Development Tutorial. Human-Computer Interaction II (COMP 4020) Winter 2013
Android Development Tutorial Human-Computer Interaction II (COMP 4020) Winter 2013 Mobile OS Symbian ios BlackBerry Window Phone Android. World-Wide Smartphone Sales (Thousands of Units) Android Phones
01. Introduction of Android
01. Introduction of Android Goal Understand the concepts and features of the Android Install the complete Android development environment Find out the one-click install Android development environment
MAP524/DPS924 MOBILE APP DEVELOPMENT (ANDROID) MIDTERM TEST OCTOBER 2013 STUDENT NAME STUDENT NUMBER
MAP524/DPS924 MOBILE APP DEVELOPMENT (ANDROID) MIDTERM TEST OCTOBER 2013 STUDENT NAME STUDENT NUMBER Please answer all questions on the question sheet This is an open book/notes test. You are allowed to
TUTORIALS AND QUIZ ANDROID APPLICATION SANDEEP REDDY PAKKER. B. Tech in Aurora's Engineering College, 2013 A REPORT
TUTORIALS AND QUIZ ANDROID APPLICATION by SANDEEP REDDY PAKKER B. Tech in Aurora's Engineering College, 2013 A REPORT submitted in partial fulfillment of the requirements for the degree MASTER OF SCIENCE
Developing for MSI Android Devices
Android Application Development Enterprise Features October 2013 Developing for MSI Android Devices Majority is the same as developing for any Android device Fully compatible with Android SDK We test using
Graduate presentation for CSCI 5448. By Janakiram Vantipalli ( [email protected] )
Graduate presentation for CSCI 5448 By Janakiram Vantipalli ( [email protected] ) Content What is Android?? Versions and statistics Android Architecture Application Components Inter Application
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
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 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
Java CPD (I) Frans Coenen Department of Computer Science
Java CPD (I) Frans Coenen Department of Computer Science Content Session 1, 12:45-14:30 (First Java Programme, Inheritance, Arithmetic) Session 2, 14:45-16:45 (Input and Programme Constructs) Materials
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
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
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 Application Development. Yevheniy Dzezhyts
Android Application Development Yevheniy Dzezhyts Thesis Business Information Technology 2013 Author Yevheniy Dzezhyts Title of thesis Android application development Year of entry 2007 Number of report
CS378 -Mobile Computing. Android Overview and Android Development Environment
CS378 -Mobile Computing Android Overview and Android Development Environment What is Android? A software stack for mobile devices that includes An operating system Middleware Key Applications Uses Linux
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,
An Overview of Java. overview-1
An Overview of Java overview-1 Contents What is Java Major Java features Java virtual machine Java programming language Java class libraries (API) GUI Support in Java Networking and Threads in Java overview-2
Getting Started with Android
Mobile Application Development Lecture 02 Imran Ihsan Getting Started with Android Before we can run a simple Hello World App we need to install the programming environment. We will run Hello World on
An Android-based Instant Message Application
An Android-based Instant Message Application Qi Lai, Mao Zheng and Tom Gendreau Department of Computer Science University of Wisconsin - La Crosse La Crosse, WI 54601 [email protected] Abstract One of the
Android App Development. Rameel Sethi
Android App Development Rameel Sethi Relevance of Android App to LFEV Would be useful for technician at Formula EV race course to monitor vehicle conditions on cellphone Can serve as useful demo of LFEV
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
