• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Acclerometer Data!!

Hi,
I am new to Android. If possible can you guide me on how to solve this problem.
I am trying to send the Acclerometer and GPS data to the server every 5 minutes. How do I implement this?

Thank You
 
You would need to create a Timer object and schedule a TimerTask to execute repeatedly every 5 min. In the run() method of the TimerTask you will need to make a connection to the server and send the data. You will, of course, need some means of receiving and processing the data on the server end. Depending on what you need to do with the data, the easiest method would be a simple PHP script.
 
Back
Top Bottom