0

I would like to have the app run in the background and check traffic data every hour. Is this possible? I can't seem to find a solution to refresh traffic data in intervals without opening the app.

Thank you.

brl214
  • 527
  • 1
  • 6
  • 16
  • in what format you need/get those "traffic data"? – Marian Paździoch Feb 02 '15 at 16:32
  • @MarianPaździoch from point a to point b. I would like to update the travel time every hour automatically. – brl214 Feb 02 '15 at 16:40
  • possible duplicate of [travel time between two locations in Google Map Android API V2](http://stackoverflow.com/questions/16756955/travel-time-between-two-locations-in-google-map-android-api-v2) – Marian Paździoch Feb 02 '15 at 16:50
  • @MarianPaździoch I already have the travel time. I want to refresh every hour automatically without having to open the app. – brl214 Feb 02 '15 at 17:32

1 Answers1

0

Use google directions api, fetch duration from legs and if you want to do in background - then do it in a Service.

Marian Paździoch
  • 8,813
  • 10
  • 58
  • 103