Answers for "Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag"

2

Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag.

myIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Posted by: Guest on January-12-2021
0

Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag

Intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_NEW_TASK)
Posted by: Guest on April-01-2021

Code answers related to "Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language