0

i have been using eclipse to create an app on android for sending data to a server through GPS. the app that i have developed is sending the data for every second .. but i cant change the time intervals... can anyone tell me a way or code to send data from my app to server for once in every 2 minutes.

2 Answers2

0

As you are using Java, the best option you have is of Thread.

And use sleep() method.

Try this Link

Community
  • 1
  • 1
Bhavin
  • 6,020
  • 4
  • 24
  • 26
0

Use alarm manager..

ngesh
  • 13,398
  • 4
  • 44
  • 60