I want to write game for Android and I need to use inside AI phone slope in some way ( in degree or any other measure). Can anybody tell me how to do that(link or code sample) ?
A:
Did you mean to use phone's movement sensors (ie. accelerator, orientation)? APIDemos from Android SDK are always a good start:
http://developer.android.com/resources/samples/ApiDemos/index.html
Code example on how to use phone's sensor:
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/os/Sensors.html
anmustangs
2010-09-30 02:09:27
Thanks, it solved problem !
msretractor
2010-09-30 19:46:08
close the question if it's already solve your problem, thanks
anmustangs
2010-10-15 04:41:26