Handler for sensor data dump

Put your problem here if it does not fit any of the other categories.

Handler for sensor data dump

Postby davelis828 » Sun Apr 03, 2011 2:20 am

Hello. This is my first post here, asking about my first android application, so yes, i m a newb! :P
I am writing an application to record data from the Accelerometer (with buttons that start and stop). What i believe has to be done is to create a Handler that handles a thread with a sleep() period which writes the data to a file(or stringbuffer,dont know which is better yet), and global conditional variables while indicate if the "pause" button has been pressed before executing the record.
The data has to be passed to the thread by global variables set to the values of the sensor event, and they will autoupdate on each event.

Am i right with this? Have you got any tips to add? :D
davelis828
Freshman
Freshman
 
Posts: 2
Joined: Sat Apr 02, 2011 10:49 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 15 guests