Tuesday, 15 January 2013

Android:Sending data periodically -



Android:Sending data periodically -

i have tried send info on bluetooth whenever slide seekbar using seekbar's onprogresschanged() method , every thing works fine.

when tried same using accelerometer's onsensorchanged() method,i.e when write code transmission in onsensorchanged() method,no date beingness written bluetooth

i guess accelerometer's onsensorchanged() method getting called tooo frequently(like 1000 times per second).i want cut down speed of writing info bluetooth.

is there way transmit info periodically? illustration 1 reading every 3 milliseconds.

i'm pretty sure can set sensitivity of sensor, or min alter before listener called 1 time again (a bit finding location).

if fails, can set in little check based on info alter min amount, or using scheme time calculate difference lastly time allowed write data, , check whatever time want delay.

android

No comments:

Post a Comment