keep application running in background

后端 未结 5 1213
暗喜
暗喜 2020-12-09 12:39

I want to keep my application running in background
I have an application that sends the user\'s location to our server
I have the following code:

pu         


        
5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-09 13:07

    A very simple answer for your problem is to use Service. It will allow you to perform variety of tasks while being in background and is your best bet for sending your location to server silently.

    Read this answer for help.

提交回复
热议问题