keep application running in background

后端 未结 5 1185
暗喜
暗喜 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 12:50

    Run your background logic in a Service, and if you want to give a good UX experience (and to also have an higher priority) post a Notification to status-bar (using NotificationManager).

提交回复
热议问题