Accelerometer access differ from phone to phone?

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Accelerometer access differ from phone to phone?

Postby Chadwell » Wed Jan 13, 2010 6:16 am

Hey guys,
I have a question about accessing the accelerometer. I have an app that accesses the accelerometer by registering a SensorEventListener, and the app works fine on my Droid, but I have gotten complaints that it doesn't work on some phones, one being the Samsung Moment.
Does accelerometer access differ from phone to phone, or will that SensorEventListener only work on certain versions of Android? I usually make my apps target 1.5

Any idea what would cause the mentioned method to work on some phones but not others?

Once Poster
Once Poster
Posts: 1
Joined: Wed Jan 13, 2010 6:08 am


Postby zorro » Tue Jan 19, 2010 1:23 pm

From what I know, the accelerometer API is the same on Android 1.5, 1.6, 2.0, 2.1. I made a game that uses it and works fine on all the versions. You should try to find what exactly does not work: the initialization (app crashes) or the tilt (returning incorrect values).
User avatar
Experienced Developer
Experienced Developer
Posts: 71
Joined: Mon Aug 10, 2009 3:11 pm
Location: Romania


Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 2 guests