When i put my app in multi window mode(Image1) and then press HOME button there, the half screen slides up so that only the status bar of that Activity
is visible now(Image2).
When the Activity
transitions from the first to second image, there is no Activity lifecycle callbacks received like onStop
or onResume
. I have a video playing on the Activity
and i would like to pause the video when my Activity
goes to the second phase because the video is not visible now.
1.How can i achieve that?
2.Also a View
is visible on the Activity
in the first image and that View
is not visible in the second image(because the Activity
has slided up), using view.getGlobalVisibleRect
on that View
always returns TRUE in the second case also. How can i determine that the View
has been hidden in the second case?