2. Who?
Kieran Gutteridge
@kgutteridge
Developing for mobile devices since 2002
3. Android
Open handset alliance
http://developer.android.com
Based on Linux 2.6
Android allows Java developers far lower access to
the phone than was possible in J2ME, ie 0870
6. Appstores
Android app market
– Self certification, this works on the internet!
– No approvals
– Piracy is a problem as with others
– Payments not rolled out across all countries
Alternatives
– Self distribution
– other app stores
9. Android Code
• Highly optimized VM, compiled byte is optimized for
mobile devices
• End result is NOT the same byte code as Java,
o dx in the sdk takes compiled Java class files and
converts them into .dex
• No JIT until Froyo 2.2
• Built with security and performances (battery life) in
mind
10. Tools
• SDK
o Available at http://developer.android.com/sdk/index.html
• Eclipse
o 3.3(Europa) or 3.4 (Ganymede)
• Eclipse Plugin
o XP,Vista, Linux, x86 Mac 10.4.8 or later
o http://developer.android.com/sdk/eclipse-adt.html
• Leave the emulator running!
o Exact opposite to J2ME and BREW, your app will be deployed
each subsequent run or debug
11. What makes an app
APK file
One of more activities (can be a headless)
AndroidManifest.xml
Views think Swing/LWUIT
Layouts xml based editor
What makes Android great
intents
contentproviders
notifcations
14. Optimisation
• Creation of Objects
• Strings are objects!
• Use of static and final
• Getters and setters
• Field lookups in larger loops
• Fixed point rather than floats
• Multi Dimensional Arrays