Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
254 views

Android on Sensor Changed , Notification Created , but can't control notification

I am working with orientation sensors,everything works except for notification. Notification is coming from sensor parameter values set in my code My goal is controlling the notifications,as soon as ...
Mike's user avatar
  • 41
18 votes
4 answers
51k views

Get device angle by using getOrientation() function

I was using Sensor.TYPE_ORIENTATION to determine current angle of device but TYPE_ORIENTATION is deprecated on API version 8. In SensorManager manual it refers to getOrientation() function in order to ...
fobus's user avatar
  • 2,008
5 votes
4 answers
12k views

Inconsistent orientation sensor values on Android for azimuth/yaw and roll

I’m having trouble getting good orientation sensor readings. The sensor readings seemed unreliable, so I tested my code against two free sensor test apps (Sensor Tester (Dicotomica) and Sensor ...
gisking's user avatar
  • 290