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 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 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.... Games [XUI2D] Example Pack - Erel    Oct 2, 2022   (33 reactions)   tags: example games, XUI2D Games Updated thread based on X2 v2.0+: https://www.b4x.com/android/forum/threads/xui2d-x2-v2-0-2021... following a path - Angry birds example - Space Shooter - Tetris - X2 Source Code Video tutorial... is not 100% up to date. It was created before the X2 library was available. All the X2 modules are now packed as a single b4x lib. 300267245 The examples pack is a single zip with all the XUI2D examples... commercial purposes. Download link: https://github.com/AnywhereSoftware/X2/archive/refs/heads/main... Page: 1   2   3   4   5   6   7   |