I want to start activity B in a standalone stack, and its locate at the center of activity A.
I find the follow method to launch activity B in new statck, and set it’s coordination:
Intent intent = new Intent(mContext, ActivityB.class);
intent.setFlag(Intent.FLAG_ACTIVITY_MULTIPLE_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
ActivityOptions options = ActivityOptions.makeBasic();
options.setLaunchBounds(new Rect(200,200,1000,800));
mContext.startActivity(intent, options.toBundle());
But i can’t find method to get coordination of activity A. I can’t calculate the correct coordination of activity B. Can anyone give me a hand?