Android: Re-invoke application if task manager kill

前端 未结 5 2262
谎友^
谎友^ 2021-02-09 00:09

Application thread get close if its killed by task manager. Need to re-invoke application as though its killed by other application or task manager. Any idea?

5条回答
  •  佛祖请我去吃肉
    2021-02-09 00:52

    according to @RetoMeyer from Google, the solution is to make the app "sticky".

    for this, you must establisH START_STICKY in your intent service management.

    check this reference from developer android

提交回复
热议问题