3

I know that in Android onPause() and onResume() can be inconsistent sometimes.

(For example, if the user is pulling down the notifications thing from the top of the screen onPause() will not be called even though the activity is partially obscured.)

So I was wondering, in what scenarios are onPause/onResume not called even if the screen becomes partially obscured.

Foobar
  • 7,458
  • 16
  • 81
  • 161
  • Partial obscurity is fine. When a foreign item takes focus of the whole screen or something similar then the correct lifecycle methods get called. – TheSunny Jan 31 '16 at 04:22
  • @TheSunny I suppose then the question is in what instances is the screen partially obscured. So far I can only think of 2 instance (when a call is received or the user receives notifications). – Foobar Jan 31 '16 at 18:00
  • Correct. When another activity/fragment/view overlays your views then your app goes into pause mode. – TheSunny Feb 02 '16 at 23:08

0 Answers0