0

My problem is: I have an application that is monitoring a car in real time.

I connected the car to my phone, make an object from it, but I don't know how to get this object parameters in background in every 1 sec. My first idea was Android Service, but

How can get a car parameter in every second even the app is killed?

My car instance:

Car myCar = new Car(100) ;

Which means my car has a 100% battery, and it's reducing.

Thank's for your answers! Cheers!

Sree
  • 1,694
  • 1
  • 18
  • 29

1 Answers1

0

Without knowing more details, you may want to read up on IntentServices and Broadcast Receivers as a starting point here. This answer also provides more depth about using background services.

angryITguy
  • 9,332
  • 8
  • 54
  • 82