In my app i need following functions and i'm not sure if i should use service, threads, asynctasks etc...
I got an activity where the user can control a "background" operation.
The background operation sends a mock_location to to system every 1sec. Another background operation changes the location every 30sec.
In the activity and from another service/thread i want to be able to start/stop this operation and to send new data (position) to the background operation while it is running.
Atm i got a Service which is getting all the data from the activity and from this service i start timertasks that change the position. The service is controlling the timertasks.
My problem: This way is much to memory and power consuming so i'm wondering if there is a better solution...