Home Tutorials

Tutorials

Hands-on experience with Android

Peeking Droid

AA AppsAll the tutorials come with the full source, javadoc documentation, project settings for Eclipse and the Android installable APK files for download. Where java source is shown, you'll find the links are Android friendly, so for example clicking the Paint keyword will open up the Android Paint API page.

The projects use Eclipse (Galileo) and Android SDK 1.6 or later, but they all follow the standard Android layout so shouldn't be too difficult to use in other development environments.

If you are browsing this site on an Android device you can download the APK's by selecting the link and following your devices instructions - they will then be installed directly to it.


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 using the simulator when you don't have a physical handset

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


SensorPlayer: Record and play back sensor events
Tuesday, 03 November 2009 20:35
Andoid cool splashWhen developing apps which use the sensors, the more realistic the environment for testiing the better. The earlier SensorArrow tutorial showed how to create an app which uses the OpenIntents simulator to let you send events via a wireframe handset representation. This is great, and extremely useful in many situations, but it has some drawbacks. To complement it we present the SensorPlayer, an app to record and sensor movements from your physical device and replay them either back there or on the emulator.
 
CoolSplash: Splash toy for Android apps
Monday, 12 October 2009 10:21
Andoid cool splashThis tutorial shows how to add sparkle to your apps with an animated splash screen. Making heavy use of the Android Animation classes, it shows how to add an image as the splash screen and tweak it interactively, so you can get it just right without having to constantly restart the app just to see the effect. For good measure, the Preferences system is given a hearty workout too, so whatever tweaks you apply are stored ready for when your app is next run. The splash screens can be entirely graphical, so don't have to be rectangular any more!
 
Device independent display scaling
Sunday, 27 September 2009 19:43
FlexiMaze Calc logoIts great to see so many new Android devices appearing. Developers love this, unless their apps look ugly on hardware they hadn't tried them on! The problem is having to cater for all the new screen sizes. Even worse - the same device can change orientation any time, like when rotating from portrait to landscape. To show a few techniques to help with this heres FlexiMaze, an app to plonk our little mouse buddy in a maze with some cheese to hunt. All the elements are scaled according to the screen size and orientation.
 
Automated Unit Testing the Android UI
Tuesday, 22 September 2009 13:38
Humble Calc logoTest first development is now a main feature in projects which use agile techniques. I'm still in awe of seeing complex software being put through its paces by thousands of tests repeatedly, accurately and without a hint of the errors that could be introduced by tired or bored humans. Android supports and encourages this approach as a major factor in helping you create high quality code.  But theres a new twist now - most Android apps are heavily UI driven. Is there anything the framework can do to help us here?
 
Sensor arrow
Sunday, 08 March 2009 18:54
Sensor Arrow logoAndroid supports little magnetic gizmos inside the handset which can tell your app which way up the phone is, how far its tilted, if it's moving and so on. This opens up a whole new world to developers, be it in utility apps, navigation, games or whatever they can dream up. Accessing these readings in code isn't always straightforward, and if you don't have a physical handset available it might seem impossible. Not so - in this tutorial we show how to make use of the values your app can listen to, and go through the process of building the necessary hooks in your code to test it without a real phone.
 
«Start Prev 123 Next End»

Page 1 of 3

Copyright © 2010 Android Academy. All Rights Reserved. Privacy statement. Sitemap.
Android Academy is not associated with Google in any way. All trademarks acknowledged.