wk1 - AndroidJava
wk1 - AndroidJava
Discipline of IT
James Cook University
This presentation focuses on…
2. Java Programming
2
Android is owned by Google, and Google is a part of OHA
8
Android Studio offers simple Installation
9
Setting up the Android SDK Manager
10
Setting up the AVD Manager
11
Useful features
12
Useful features
• adb
• Useful for obtaining shell access to an
emulator or real device – handy for removing
apps (http://developer.android.com/tools/help/adb.html)
13
Other useful Android SDK commands
• Monkey
• Supports automatic UI event testing
• Sqlite3
• A light-weight database tool
• Keytool
• Used to generate signing certificates for Apps
• Note: Eclipse ADT automatically does this for
projects (in debug mode)
14
Java programming
15
Primitive data types
16
Classes and objects
• Avoid using:
• finalize() method
• clone() method
18
Correctly overriding equals() for your own classes
19
Java Collection API
20
Collections and thread safety
• Useful point:
• Vector, Hashtable are thread safe!
21
Java packages
22
Inner classes and event callbacks
23
Anonymous inner classes are also common
24
Good design
25