-1

I want to upload some data using web services, I have created a service, but when phone is switch off services are getting kill and data are not uploaded, please guide me on how to create a service which run even after switch of and on android, and will they persist data which is passed in intent to start service.

4

1 回答 1

0

您可以在重新启动时使用广播接收器。然后重新启动您的后台服务器。

看到这个问题Broadcast receivers on reboot?

于 2013-09-13T12:43:29.220 回答