System.out.println("component == " + j.getComponent());
System.out.println("flags == x" + Integer.toHexString(j.getFlags())); prints action == android.intent.action.MAIN categories == [android.intent.category.LAUNCHER] component == ComponentInfo{xper.honeycomb/xper.honycomb.XperActivity} flags == x As can be seen the difference between the two methods is that
the second one sets two flags,
Intent.FLAG_ACTIVITY_NEW_TASK(0x10000000) and
Intent.FLAG_ACTIVITY_CLEAR_TASK(0x00008000)) Quite why it is necessary to add two brand new methods for this purpose is not that obvious.
Share with your friends: