I use code below to start an activity:
Intent intent = new Intent(XXX.this, YYY.class);
intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
startActivity(data);
somehow, I don't know why, XXX's onResume() method is invoked.
and because I try to pop up a progressDialog inside onResume(), I got below error:
`android.view.WindowLeaked: Activity XXX has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@406ca468 that was originally added here.`
In debug mode, I set a breakpoint at the first line of method onResume(), it never stops there, but still I get the above error.
why does this happen?