I want to write gyro sensor values to file on sdcard. I prefer to use bufferedwriter but cant use it periodically. how it does?
Asked
Active
Viewed 161 times
3
-
Use timertask to set periods – Viswanath Lekshmanan Apr 02 '13 at 06:43
-
timertask needs a final values(string, float...), but gyroscope sensor returns float continuously, so it doesnt – Alper Apr 02 '13 at 07:12
-
Try to use Thread.sleep(1000) after you have read the values and than read again. Maybe you have to redesign your I/O Thread for this. Its not nice but if you cant use Timers it could help. – Steve Benett Apr 07 '13 at 21:00
1 Answers
0
There are plenty of ways to do this. But let's start with looking at some of your relevant code. Post the code so we understand your structure and we can help from there. Rest assured this problem is very trivial and I'm sure you'll get a working response shortly thereafter.

vkinra
- 943
- 1
- 9
- 16