How to prevent an android activity to get killed

后端 未结 3 1220
闹比i
闹比i 2020-12-22 07:21

I have developed an application that does require to do constant network activity. This Activity does the network connections thru an AsyncTask, sometime this work being do

3条回答
  •  盖世英雄少女心
    2020-12-22 07:39

    Does your application have to be an activity? Can it utilize a background service?

    http://developer.android.com/reference/android/app/Service.html#ServiceLifecycle

提交回复
热议问题