user1286030
user1286030

Reputation: 55

triggering an event every hour in android

i am measuring through put TX and Rx in android thread. how i can put the Max through put in the database every hour. for example thread is calculating throughput every second and save it in the variable. As the hour passes it save the Max value in the data base table.

Upvotes: 0

Views: 616

Answers (1)

Marcin Orlowski
Marcin Orlowski

Reputation: 75629

Use system's AlarmManager feature to set up recurring hourly event and, depending on your application design, your receiver should either tell the app to write data to the DB or do it by itself.

Upvotes: 1

Related Questions