Reputation: 143
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
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