79786674

Date: 2025-10-09 17:07:43
Score: 1
Natty:
Report link

When you use the flags FLAG_ACTIVITY_NEW_TASKand FLAG_ACTIVITY_CLEAR_TASK together, this causes Android to remove all Activity intances in the target task and create a new instance of the target Activity.

The goal of the code you've shown is not clear. If you already have an instance of FirstActivity, why are you creating a new instance of FirstActivity? What is it you are trying to do here? Please give more context.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please give
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When you use the
  • High reputation (-2):
Posted by: David Wasser