• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Loosing sanity with SensorEventListener, please assist.

 
Stole Perov
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there.

My issue is as follows:

I want to create a single Class (not activity, or intent or anything...) that will implement the SensorEventListener

The problem is, that, i do not understand googles information on how to bind this class to read from the sensors on the phone.

I need to use the Orientation sensors, Azimuth, Ptich and Roll.

So far i have:


I have no idea where to go from here. I would appreciate any help (please do not refer to the googles documentation as a complete answer).
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please do not refer to the googles documentation as a complete answer

That's where the answer is, though. The javadocs for SensorManager tell you how to get hold of a SensorManager object. Once you have that, you can use it to register your SensorListener with the OS.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic