MvHorssen
MvHorssen

Reputation: 143

Android: implement sensormanager in a class

I'm building an android application that uses the accelerometer. I create a class named "SensorManager". But i cant get the default sensor:

Picture: ftp://horssen.net:60/Programming1.png

When i create a new project with the same code, it works:

Picture: ftp://horssen.net:60/Programming2.png

I cant understand why the code in my own class isn't working.

Upvotes: 1

Views: 172

Answers (1)

user2060383
user2060383

Reputation: 989

You have named your activity as SensorManager which is wrong because there is already a SensorManager Class in SDK

Try re-naming your activity.

Upvotes: 1

Related Questions