Starting LocationManager as Service Android

后端 未结 1 1125
情深已故
情深已故 2021-02-09 20:15

What I\'m attempting to do is when receiving a c2dm message, start a service that asks for location for \'x\' amount of time and then hands that location off to our server. The

1条回答
  •  -上瘾入骨i
    2021-02-09 20:54

    Fixed the issue I was having. Code was actually working. I added the network provider, adjusted the onDestroy() method to stop the service, and tweaked the time used to grab GPS signal.

    Thank you for the advice, CommonsWare

    0 讨论(0)
提交回复
热议问题