B4A Question [RESOLVED] PhoneSensors, ps.Initialize2, SensorDelay value - Jmu5667    Dec 3, 2020 Hello
The help for the sensor delay value indicates a value of 1-3, the google docs SensorManager | Android Developers indicate 0-3, 0 is the fastest. This makes a huge difference when reading sensor data.
Regards
John.... B4A Question [SOLVED] PhoneSensors.Initialize2 blocks the sensor - lemonisdead    May 23, 2014 Initialize2 values.
For example: I use a service to study the best way to collect the sensor's value...)
Sensor.Initialize2(Sensor.TYPE_ACCELEROMETER,tTemp)
End Sub
Sub Service_Start
Sensor... B4A Question registerListener with maxReportLatencyUs - Erel (first post)    Apr 16, 2018 It cannot be changed in PhoneSensors library. You can change the rate with PhoneSensors.Initialize2.... B4A Question Accelerometer Battery Drain while Phone Sleeps - Erel (first post)    Dec 5, 2013 See the docs: http://www.b4x.com/android/forum/pages/results/?query=phonesensors.initialize2&page=1 Are you releasing the partial lock when it is not needed? You should also stop listening to the sensor.... B4A Question Orientation sensor - Erel (first post)    Sep 27, 2015 Are you calling PhoneSensor.Initialize2? Try to set the delay to 3 and test it.... B4A Question Maximum Frequency of accelerometers - Erel (first post)    Jul 15, 2014 Use PhoneSensors.Initialize2 and pass 0 for the SensorDelay parameter.... B4A Tutorial Android shake event with PhoneSensors - Erel    Jun 23, 2011   (10 reactions) Process_Globals
Dim sensor As PhoneSensors
Dim sounds As SoundPool
Dim bounceId As Int
End Sub....Initialize(sensor.TYPE_ACCELEROMETER)
Shake.CallBackActivity = "Main" 'Set... B4A Tutorial Orientation and accelerometer - Erel (first post)    Oct 20, 2013   tags: sensors how much battery does the accelerometer consume
This value is not available anywhere.
is it possible to reduce the reading interval?
Yes. See PhoneSensors.Initialize2.... B4A Question Initialize, Initialize2 and IsInitialized - Alessandro71    Nov 11, 2023 How does B4X tags an object as "initialized"?
I understand that calling "Initialize" does the trick, but I saw some classes also have an "Initialize2" sub that seems to... B4A Question Phone Sensors - Erel (first post)    Feb 5, 2012 You should actually use PhoneSensors object instead. It replaced PhoneOrientation and PhoneAccelerometer. See PhoneSensors.Initialize2 for the possible delays.... Page: 1   2   3   4   5   6   7   |