Home Tutorials

Tutorials

Hands-on experience with Android

Peeking Droid

AA AppsWhere appropriate, the tutorials come with the source, javadoc documentation, project settings for Eclipse and the Android installable APK files for download. You'll also find them in the Android Market - just search for "Android Academy". This is done because some carriers only allow apps to be installed from the market, to enable alerts when there are updates and to allow the Market to filter out apps which won't run on incompatible handsets.

The projects use the Eclipse IDE. Since they all follow the standard Android layout they shouldn't be too difficult to use in other development environments.

If you are browsing now on an Android device you can install the Apps directly by selecting the download APK link and following your devices instructions. Note your handset may be set to disallow apps from non-market locations to be installed, so ensure Settings | Applications | "Unknown sources" is enabled.

Please feel free to use the comments feature for any tips, questions or feedback.

 

 
TwitterWidget Micro Thumnail
TwitterWidget
Skill 8 Skill: Advanced
How to write a Widget which sends tweets using OAuth for authentication.

 
33x50-buildinfo
BuildInfo
Skill 4 Skill: Medium
Tool: How to access enhanced build info without requiring unnecessary user permissions.

 
33x50-themes-and-styles
Themes and Styles
Skill 5 Skill: Medium
How to use Androids Theme system to change all your UI at once.

 
33x50-sensorplayer
SensorPlayer
Skill 8 Skill: Advanced
Tool: A framework to record and playback sensor (orientation, accelerometer) events.

 
33x50-coolsplash
CoolSplash
Skill 5 Skill: Medium
Splash screen animator and toy - also shows Preferences usage

FlexiMaze
FlexiMaze
Skill 7 Skill: Advanced
Shows techniques for dynamic device-independent scaling and content input from XML

HumbleCalc
HumbleCalc
Skill 5 Skill: Medium
Illustrates automated unit testing of the Android UI

SensorArrow
Sensor arrow
Skill 5 Skill: Medium
Shows realtime tilt/direction plus android emulator accelerometer use with the sensor simulator

SignDocRelease
Sign, Doc & Release
Skill 1 Skill: Novice
Guide to signing apk files, documenting with Android javadoc and archiving your project

Logging
Android logging
Skill 2 Skill: Beginner
How to set up Eclipse for Android logging

Wash your hands!
Wash your hands!
Skill 2 Skill: Beginner
Basic graphics and event handling

Debugging
Debugging with Eclipse
Skill 2 Skill: Beginner
Shows how to debug with Eclipse

Threading1
Threading with Android - part 1
Skill 5 Skill: Medium
Basic threading - updates screen in reponse to finger presses

Threading2
Threading with Android - part 2
Skill 5 Skill: Medium
Builds on part 1 to show continous screen updates

Threading3
Threading with Android - part 3
Skill 7 Skill: Advanced
More complex example showing several threads controlling different screen objects

MessageQueue
The Android Message Queue
Skill 5 Skill: Medium
Illustrates the Message Queue by updating objects on the screen
 

 

Tutorials
Sign, Doc & Release
Tutorials - Hands on
Tuesday, 10 February 2009 00:00
Padlock and keySo you've written, tested and debugged your killer Android app and now want to share it with the world! Your project creates the file to install - the APK Android installable one - but that's not the full story. You can't distribute it unless its been signed, a security measure enforced on anyone distributing Android apps. The good news is it's nothing like as difficult as in the bad old days of J2ME, where you had to worry about the different levels of security, obtain certificates from third parties then send your app off for resigning every build. In this tutorial we show you how to do that yourself as well as give you a little present: an all-in-1 tool to automate it all!
Joomla Templates and Joomla Extensions by JoomlaVision.Com
 
Threading with Android - part 3
Tutorials - Hands on
Thursday, 22 January 2009 00:00

Spider in webWe'll again build on the work in the previous threading tutorials but this time make the application more real world by splitting the threads off into their own classes. We do this to make them more manageable, and we'll add another background thread to make the planets spin around behind all the counters.

Joomla Templates and Joomla Extensions by JoomlaVision.Com
 
Threading with Android - part 2
Tutorials - Hands on
Wednesday, 26 November 2008 00:00

Spider in webFollowing on from part 1, where we showed screens which updated only on finger press events, its time to get dynamic. We'll build on the first tutorial and make the numbers spin up all the time. This is a little more complex because it introduces a fundamental rule regarding threading on Android - one which was smartly side-stepped in part 1.

Joomla Templates and Joomla Extensions by JoomlaVision.Com
 
The Android Message Queue
Tutorials - Hands on
Monday, 03 November 2008 00:00

Ducks in a rowAt their heart, computers are pretty simple beasts: they only do what you tell them to. Sometimes though, it looks like they are responding to events being fired from all directions at once. Well, thats because they've been told how to deal with those "random" events by interrupting the current flow. In Android a mechanism for this is called the Message Handling System. It's a way of writing software that can be interrupted at any time by predefined messages. These messages are generated by real world events like timers firing or the keyboard being opened, so here's an Android application to illustrate it.

 

Joomla Templates and Joomla Extensions by JoomlaVision.Com
 
Android logging
Tutorials - Hands on
Thursday, 16 October 2008 20:17
LoggingWhen your application is running, how can you tell exactly what it's doing at any time? After it has finished, how can you tell what it did during the run? If you are hunting down elusive bugs, you need all the tools you can get, and right up there with the interactive debugger is the logger. Google realise its importance and have done the one in the Android Eclipse plug-in sufficient justice. We will show how to set up our application for logging, perform some test runs and further refine our logging system to cut out the noise and focus on only the areas of our application we are interested in.
Joomla Templates and Joomla Extensions by JoomlaVision.Com
 
«Start Prev 12 Next End»

Page 2 of 2
Portions are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License. Android Academy is independent from Google. All trademarks acknowledged.
 
Glossary
We have 50 guests online