Android Sensors Value

madSac

Active Member
Licensed User
Longtime User
Is there any lib or method from which i can get current value of all supported sensors. ?
Please note i don't want to know value on changing.I want current values whenever invoke the event.I searched in forum and found that PhoneSensor lib can only invoke an event on value change.
 

madSac

Active Member
Licensed User
Longtime User
Ok. One more question. If we declare too many variables in process globals will it slow down the OS and if we declare a variable in sub are they destroyed after sub is destroyed.
I have this question in mind as i don't want to fill up user's phone with useless variables till my app is running.
Is there any tutorial which defines scopes in b4a not in java (i think b4a does something different) ?
 
Upvote 0

madSac

Active Member
Licensed User
Longtime User
so if i declare gps,sensors,download manager,media player...and many more objects in Service's Process Globals then neither it will cause any memory related problem nor it will battery draining.
 
Upvote 0

madSac

Active Member
Licensed User
Longtime User
Yes i will do that.
Another thing is
Is there any tutorial which explains variables scope in B4A ?
so that i can make a better application rather than struggling with unknown errors due to scopes.
 
Upvote 0

madSac

Active Member
Licensed User
Longtime User
I am still facing problem with proximity sensor and some others. If I keep phone untouched. There values are not changed.
What to do now ?
 
Upvote 0
Top