I am new to Android. I am facing some kind of ambitious university project, so I hope you tell me if my idea of implementing the application is correct:
Business scenario:
- WebService consumes user sms (sendt / received) and GPS / "network provided" location information
- The GPS / Network Provided position must be sent to the WebService every 1 minute (if the value is changed)
- Sms update should be sent immediately to WebService
My implementation idea ...
I am going to use AlarmManager to prepare an Intent corresponding to BroadcastReceiver (and schedule it at 1 minute intervals). Then I will start the WakefullIntentService in the onReceive () method. This will serve as the basis for my WebService. This will work to send data over HTTP in the background.
... and doubts:
How to update GPS / network provided location data in the background? Should I start some additional service and use LocationListener in it? Then it would not make sense to use AlarmManager - I could feed my WebService from this location monitoring service.
: Diamonds Are Forever. . , . , , .