I have a button which is drawn from a service (using windowManager = (WindowManager) getSystemService(WINDOW_SERVICE);
) This button is visible throughout the device (till the service is stopped)
Clicking on this button starts an activity A (using intent flag ACTIVITY_NEW_TASK). I want to know if it is possible to find out where this button was pressed? (the location of the activity where the user was while pressing the button)
I need to know this because in activity A , there is a button called GO BACK, which should return the user to the exact position where he was initially.
Note, due to some reasons, I cant call finish();