G grafsoft Well-Known Member Licensed User Longtime User Nov 13, 2022 #1 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: 169 MyLocation.zip 57.1 KB · Views: 152
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?
Solution DonManfred Nov 13, 2022 Sensors uses targetsdk 28, MyLocation uses 30. That´s probably relevant.
DonManfred Expert Licensed User Longtime User Nov 13, 2022 #2 Sensors uses targetsdk 28, MyLocation uses 30. That´s probably relevant. Upvote 0 Solution
G grafsoft Well-Known Member Licensed User Longtime User Nov 13, 2022 #3 DonManfred said: Sensors uses targetsdk 28, MyLocation uses 30. That´s probably relevant. Click to expand... Thank you! Not so good for future versions, but then there will be another solution ... Upvote 0
DonManfred said: Sensors uses targetsdk 28, MyLocation uses 30. That´s probably relevant. Click to expand... Thank you! Not so good for future versions, but then there will be another solution ...