Android: How do I avoid starting activity which is already in stack?

前端 未结 7 2213
一整个雨季
一整个雨季 2020-12-23 12:20

Lets try to explain my question: I got an application and a service. The application is started with activity A. The service sends a broadcast that will let the application

7条回答
  •  难免孤独
    2020-12-23 13:03

    You may consider using android:launchMode="singleTop" instead of android:launchMode="singleInstance" Good article about the differences

提交回复
热议问题