Android app restarts when opened by clicking app icon

后端 未结 5 549
情书的邮戳
情书的邮戳 2021-01-04 00:00

Scenario :

I open my app by clicking icon, do something, navigate through activities, pause the app by clicking home button.

Case 1:

If I

5条回答
  •  半阙折子戏
    2021-01-04 00:45

    seems in AndroidManifest you kept your launch activity android:launchMode="singleTask". remove this one from your launch activity will solve problem

提交回复
热议问题