Problem:
The user can choose how long and when start to track your locaton (Like today from 08:00 to 16:00). So during this interval my application will listen for the location every 5 minutes (this time can be changed, it's a user's preference).
What I'm thinking:
Making a service to be running and listenning for coming of the GPS or network locations during the time interval definned by the user.
Problem:
The service can be removed for running a long time?
I need to registers listeners to GPS and Network (even if they have not enabled) when starting the service or I need to register and remove Listener depending status of GPS and Network?
My service will continue running even if the user is not using the phone for a long time (like an hour) right?