{"action":"created","issue":{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/105","labels_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/105/comments","events_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/105/events","html_url":"https://github.com/AltBeacon/android-beacon-library/issues/105","id":56307403,"number":105,"title":"Android 5 only: Crash on exit of app while BT off","user":{"login":"mattwritescode","id":4481604,"avatar_url":"https://avatars.githubusercontent.com/u/4481604?v=3","gravatar_id":"","url":"https://api.github.com/users/mattwritescode","html_url":"https://github.com/mattwritescode","followers_url":"https://api.github.com/users/mattwritescode/followers","following_url":"https://api.github.com/users/mattwritescode/following{/other_user}","gists_url":"https://api.github.com/users/mattwritescode/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwritescode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwritescode/subscriptions","organizations_url":"https://api.github.com/users/mattwritescode/orgs","repos_url":"https://api.github.com/users/mattwritescode/repos","events_url":"https://api.github.com/users/mattwritescode/events{/privacy}","received_events_url":"https://api.github.com/users/mattwritescode/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"davidgyoung","id":1044849,"avatar_url":"https://avatars.githubusercontent.com/u/1044849?v=3","gravatar_id":"","url":"https://api.github.com/users/davidgyoung","html_url":"https://github.com/davidgyoung","followers_url":"https://api.github.com/users/davidgyoung/followers","following_url":"https://api.github.com/users/davidgyoung/following{/other_user}","gists_url":"https://api.github.com/users/davidgyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgyoung/subscriptions","organizations_url":"https://api.github.com/users/davidgyoung/orgs","repos_url":"https://api.github.com/users/davidgyoung/repos","events_url":"https://api.github.com/users/davidgyoung/events{/privacy}","received_events_url":"https://api.github.com/users/davidgyoung/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-02-02T23:00:39Z","updated_at":"2015-02-07T02:55:53Z","closed_at":"2015-02-03T02:53:17Z","body":"For Android 5 devices, while Bluetooth is turned off, app crashes immediately after pressing the home button. This is replicable in the https://github.com/AltBeacon/android-beacon-library-reference.\r\n\r\nE/AndroidRuntime﹕ FATAL EXCEPTION: main\r\n    Process: com.radiusnetworks.testapp, PID: 18116\r\n    java.lang.IllegalStateException: BT Adapter is not turned ON\r\n            at android.bluetooth.le.BluetoothLeUtils.checkAdapterStateOn(BluetoothLeUtils.java:136)\r\n            at android.bluetooth.le.BluetoothLeScanner.startScan(BluetoothLeScanner.java:106)\r\n            at android.bluetooth.le.BluetoothLeScanner.startScan(BluetoothLeScanner.java:101)\r\n            at org.altbeacon.beacon.service.scanner.CycledLeScannerForLollipop.deferScanIfNeeded(CycledLeScannerForLollipop.java:98)\r\n            at org.altbeacon.beacon.service.scanner.CycledLeScanner.scanLeDevice(CycledLeScanner.java:163)\r\n            at org.altbeacon.beacon.service.scanner.CycledLeScanner.finishScanCycle(CycledLeScanner.java:258)\r\n            at org.altbeacon.beacon.service.scanner.CycledLeScanner.scheduleScanCycleStop(CycledLeScanner.java:231)\r\n            at org.altbeacon.beacon.service.scanner.CycledLeScanner$1.run(CycledLeScanner.java:227)\r\n            at android.os.Handler.handleCallback(Handler.java:739)\r\n            at android.os.Handler.dispatchMessage(Handler.java:95)\r\n            at android.os.Looper.loop(Looper.java:135)\r\n            at android.app.ActivityThread.main(ActivityThread.java:5221)\r\n            at java.lang.reflect.Method.invoke(Native Method)\r\n            at java.lang.reflect.Method.invoke(Method.java:372)\r\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)\r\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)"},"comment":{"url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/comments/73346808","html_url":"https://github.com/AltBeacon/android-beacon-library/issues/105#issuecomment-73346808","issue_url":"https://api.github.com/repos/AltBeacon/android-beacon-library/issues/105","id":73346808,"user":{"login":"davidgyoung","id":1044849,"avatar_url":"https://avatars.githubusercontent.com/u/1044849?v=3","gravatar_id":"","url":"https://api.github.com/users/davidgyoung","html_url":"https://github.com/davidgyoung","followers_url":"https://api.github.com/users/davidgyoung/followers","following_url":"https://api.github.com/users/davidgyoung/following{/other_user}","gists_url":"https://api.github.com/users/davidgyoung/gists{/gist_id}","starred_url":"https://api.github.com/users/davidgyoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidgyoung/subscriptions","organizations_url":"https://api.github.com/users/davidgyoung/orgs","repos_url":"https://api.github.com/users/davidgyoung/repos","events_url":"https://api.github.com/users/davidgyoung/events{/privacy}","received_events_url":"https://api.github.com/users/davidgyoung/received_events","type":"User","site_admin":false},"created_at":"2015-02-07T02:55:53Z","updated_at":"2015-02-07T02:55:53Z","body":"Nice catch!  That was a copy/paste error."}}