Lunar Tilt Lander
Kharaka Enterprises, LLC
The idea of this project was simply to learn the basics of the motion sensors and the touchscreen capabilities of the android 2.0 platform. The basics of this application only take a few days to learn and can be used widely in many applications such as google sky map or driving games where the device is used as a steering wheel.
In the DoStart method we add the sensorlistener
In the LunarThread we assign the Orientation sensor to the member variable
mSensorManager = (SensorManager) mContext.getSystemService("sensor");
9. The rest is commented well in the code... enjoy.
Download the code and documentation at: /mobile/lunartilt.zip
See the complete code and documentation for more details. This is a modified version of the Lunar Tilt app that came with the Android SDK by Google so you should register for the sdk first.
Send mail to SKharaka@kharaka.com with questions or comments about this web site.
Copyright © 2010 Kharaka Enterprises, LLC
Last modified: Jan 1, 2010