{"action":"opened","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/3584","labels_url":"https://api.github.com/repos/kivy/kivy/issues/3584/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/3584/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/3584/events","html_url":"https://github.com/kivy/kivy/issues/3584","id":101281996,"number":3584,"title":" App.on_pause / on_resume on Android 5.1 not called (ref #3202 for iOS)","user":{"login":"marystern","id":13821612,"avatar_url":"https://avatars.githubusercontent.com/u/13821612?v=3","gravatar_id":"","url":"https://api.github.com/users/marystern","html_url":"https://github.com/marystern","followers_url":"https://api.github.com/users/marystern/followers","following_url":"https://api.github.com/users/marystern/following{/other_user}","gists_url":"https://api.github.com/users/marystern/gists{/gist_id}","starred_url":"https://api.github.com/users/marystern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marystern/subscriptions","organizations_url":"https://api.github.com/users/marystern/orgs","repos_url":"https://api.github.com/users/marystern/repos","events_url":"https://api.github.com/users/marystern/events{/privacy}","received_events_url":"https://api.github.com/users/marystern/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-16T17:24:58Z","updated_at":"2015-08-16T17:24:58Z","closed_at":null,"body":"\r\nI have the same problem as #3202 but on Android 5.1 (rather than iOS) ie on_pause() does not get called when it should.\r\n\r\nI've just tried this again with current master (commit 0c7cd9ea95851fbe3bbf029a9832232a774fbd5a) and again with the patch from mixx (in #3202) applied: in both cases this is still broken on Android.\r\n\r\nMy app is a simple one that uses the camera: it correctly calls out to the Android Camera app, but will not return due to this bug.\r\n\r\nHere's a snippet of the logs, and I have logging in my on_pause/on_resume() methods which never get called (on_pause does return True by the way):\r\n\r\n```\r\nI/python  (13908): [INFO              ] [XXXXXXXX    ] === App STARTED =======================\r\nI/python  (13908): [INFO              ] [OSC         ] using <thread> for socket\r\nI/python  (13908): [INFO              ] [Base        ] Start application main loop\r\nI/python  (13908): [INFO              ] [Android     ] found 17 joystick\r\nI/python  (13908): [INFO              ] [Android     ] create joystick <0>\r\nI/python  (13908): [INFO              ] [Android     ] discard joystick <0> cause no button\r\n...\r\nI/python  (13908): [INFO              ] [Android     ] create joystick <16>\r\nI/ActivityManager(  472): START u0 {act=android.media.action.IMAGE_CAPTURE flg=0x3 cmp=com.google.android.GoogleCamera/com.android.camera.CaptureActivity (has clip) (has extras)} from uid 10155 on display 0\r\nV/WindowManager(  472): addAppToken: AppWindowToken{3d8ce58c token=Token{25f1babf ActivityRecord{214aa8de u0 com.google.android.GoogleCamera/com.android.camera.CaptureActivity t45}}} to stack=1 task=45 at 1\r\nI/python  (13908): [INFO              ] [Android     ] Must go into sleep mode, check the app\r\nI/python  (13908): [INFO              ] [Android     ] App doesn't support pause mode, stop.\r\nI/python  (13908): [INFO              ] [Base        ] Leaving application in progress...\r\nI/python  (13908): [INFO              ] [XXXXXXXX    ] --- App STOPPED =======================\r\n```\r\n\r\nI've been struggling for a while to get the camera on Android working with Kivy (not easy), and this bug is the latest blocker (otherwise I love kivy!)\r\n\r\nThanks.\r\n\r\n"}}