Start/stop traccar service at specific time.

vdovin8 years ago

I want to add to Android Client new field something like traccar working time - from : 8.00 till : 20.00. But i can't realize this. i try to do it with alarmmanager, but i don't understand it well. Can you help me with some articles or better examples how to do it?

Anton Tananaev8 years ago

You can already do it with Traccar Client for Android. Create shortcuts first, and then use any scheduling app (e.g. Llama).

vdovin8 years ago

Thank you for fast answer! Anton, i thought to do it in traccar client app because for your solution necessary to download another application and no one user want to do it.

Anton Tananaev8 years ago

I see. I agree that it's more complicated than having it in the same app.

With AlarmManager you can set up specific time when you want your app to be woken up.