Android Question Problem with sensors, pedometer, step counter

grafsoft

Well-Known Member
Licensed User
Longtime User
Hi,

I am referring to this post:

https://www.b4x.com/android/forum/threads/kitkat-step-detector.40563/#post-242811, and the lines

B4X:
AddSensor(18, "TYPE_STEP_DETECTOR", False)
AddSensor(19, "TYPE_STEP_COUNTER", False)

This works fine in the example sensors.zip.

In Mylocation.zip, module main, most sensors work OK, but those above produce a "not supported".

I find nothing special in the libraries, manifest etc.

What am I missing?
 

Attachments

  • Sensors.zip
    7.5 KB · Views: 90
  • MyLocation.zip
    57.1 KB · Views: 82

DonManfred

Expert
Licensed User
Longtime User
Sensors uses targetsdk 28, MyLocation uses 30. That´s probably relevant.
 
Upvote 0
Solution
Top