![android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? · Issue #109 · luojilab/DDComponentForAndroid · GitHub android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? · Issue #109 · luojilab/DDComponentForAndroid · GitHub](https://user-images.githubusercontent.com/6574977/40766847-68e3441a-64e3-11e8-941c-b64031d33c48.png)
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? · Issue #109 · luojilab/DDComponentForAndroid · GitHub
![New activity instance opened on Android 11 · Issue #113 · KasemJaffer/receive_sharing_intent · GitHub New activity instance opened on Android 11 · Issue #113 · KasemJaffer/receive_sharing_intent · GitHub](https://user-images.githubusercontent.com/19626536/114920924-a47ad980-9e32-11eb-8e08-672b0c40c46a.png)
New activity instance opened on Android 11 · Issue #113 · KasemJaffer/receive_sharing_intent · GitHub
![android - How to preserve current back stack (or task) when notification is clicked? - Stack Overflow android - How to preserve current back stack (or task) when notification is clicked? - Stack Overflow](https://i.stack.imgur.com/YWUze.png)
android - How to preserve current back stack (or task) when notification is clicked? - Stack Overflow
![android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context · Issue #31 · mattermoran/map_launcher · GitHub android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context · Issue #31 · mattermoran/map_launcher · GitHub](https://user-images.githubusercontent.com/5869861/87425495-0a091380-c5de-11ea-86cd-060b014118a8.png)
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context · Issue #31 · mattermoran/map_launcher · GitHub
![Android: How to attach an extra to an Intent/PendingIntent in a Notification (solution) | alvinalexander.com Android: How to attach an extra to an Intent/PendingIntent in a Notification (solution) | alvinalexander.com](https://alvinalexander.com/sites/default/files/android-pendingintent-getactivity-method-api.jpg)
Android: How to attach an extra to an Intent/PendingIntent in a Notification (solution) | alvinalexander.com
![Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag.](https://2.bp.blogspot.com/-rcZug2AihPk/WTLFRmVq5AI/AAAAAAAABAM/5Bwduvlx6PAlw6o9kiMAIueu4MDC4AB1gCLcB/w1200-h630-p-k-no-nu/FLAG_ACTIVITY_NEW_TASK.jpg)
Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag.
![TIL you can use finishAffinity() instead of Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK : r/androiddev TIL you can use finishAffinity() instead of Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK : r/androiddev](https://external-preview.redd.it/_mtOiO_5YViZQ3MK7X00h5ldwXyQAmkDAKcbB7AwqtQ.jpg?auto=webp&s=a6f6287fef897387d850d44e55b0b91338aadc11)