How to make an application run continuously in android?

后端 未结 2 2028
难免孤独
难免孤独 2021-01-13 09:54

I am creating an application which sends the location information to the server. But when the back or home button is clicked the application is stopped. Is there a way to ma

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 10:44

    You need to run a Service class for your own application.

    Refer docs for more information.

提交回复
热议问题