{"action":"created","issue":{"url":"https://api.github.com/repos/Redth/ZXing.Net.Mobile/issues/189","labels_url":"https://api.github.com/repos/Redth/ZXing.Net.Mobile/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/Redth/ZXing.Net.Mobile/issues/189/comments","events_url":"https://api.github.com/repos/Redth/ZXing.Net.Mobile/issues/189/events","html_url":"https://github.com/Redth/ZXing.Net.Mobile/issues/189","id":100974759,"number":189,"title":"Exclusive access to the camera","user":{"login":"forTAT","id":5442344,"avatar_url":"https://avatars.githubusercontent.com/u/5442344?v=3","gravatar_id":"","url":"https://api.github.com/users/forTAT","html_url":"https://github.com/forTAT","followers_url":"https://api.github.com/users/forTAT/followers","following_url":"https://api.github.com/users/forTAT/following{/other_user}","gists_url":"https://api.github.com/users/forTAT/gists{/gist_id}","starred_url":"https://api.github.com/users/forTAT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forTAT/subscriptions","organizations_url":"https://api.github.com/users/forTAT/orgs","repos_url":"https://api.github.com/users/forTAT/repos","events_url":"https://api.github.com/users/forTAT/events{/privacy}","received_events_url":"https://api.github.com/users/forTAT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-14T09:35:59Z","updated_at":"2015-10-05T08:48:33Z","closed_at":null,"body":"I am trying to implement the ZXing barcode library into my Xamarin.Forms project.\r\nBecause I am having a few problems there I tried the android demo project from the library: Sample.Android.\r\n\r\nThis one seems to work well but it crashes when putting the app into background and getting it back into foreground with the following exception:\r\n\r\n    [MonoDroid] UNHANDLED EXCEPTION:\r\n    [MonoDroid] System.Exception: Couldn't get exclusive access to the camera\r\n    [MonoDroid] at ZXing.Mobile.ZXingSurfaceView.GetExclusiveAccess () <IL 0x00033, 0x00150>\r\n    [MonoDroid] at ZXing.Mobile.ZXingSurfaceView.StartScanning     (ZXing.Mobile.MobileBarcodeScanningOptions,System.Action`1<ZXing.Result>) <IL 0x00046, 0x0028b>\r\n    [MonoDroid] at ZXing.Mobile.ZXingScannerFragment.scan () <IL 0x00012, 0x0007f>\r\n    [MonoDroid] at ZXing.Mobile.ZXingScannerFragment.OnResume () <IL 0x000fd, 0x00617>\r\n    [MonoDroid] at Android.Support.V4.App.Fragment.n_OnResume (intptr,intptr) <IL 0x0000a, 0x0009f>\r\n    [MonoDroid] at (wrapper dynamic-method) object.2ec0fbbb-3a10-48d4-b1ab-3fe72444ec91 (intptr,intptr) <IL 0x00011, 0x0003b>\r\n\r\nDoes anybody know how to fix this problem?\r\n"},"comment":{"url":"https://api.github.com/repos/Redth/ZXing.Net.Mobile/issues/comments/145465728","html_url":"https://github.com/Redth/ZXing.Net.Mobile/issues/189#issuecomment-145465728","issue_url":"https://api.github.com/repos/Redth/ZXing.Net.Mobile/issues/189","id":145465728,"user":{"login":"PaulAchess","id":6310023,"avatar_url":"https://avatars.githubusercontent.com/u/6310023?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulAchess","html_url":"https://github.com/PaulAchess","followers_url":"https://api.github.com/users/PaulAchess/followers","following_url":"https://api.github.com/users/PaulAchess/following{/other_user}","gists_url":"https://api.github.com/users/PaulAchess/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulAchess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulAchess/subscriptions","organizations_url":"https://api.github.com/users/PaulAchess/orgs","repos_url":"https://api.github.com/users/PaulAchess/repos","events_url":"https://api.github.com/users/PaulAchess/events{/privacy}","received_events_url":"https://api.github.com/users/PaulAchess/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T08:48:33Z","updated_at":"2015-10-05T08:48:33Z","body":"Hi,\r\n\r\nI have a couple of users that experience this error on a regular basis.\r\nDo you know where it comes from ? Just to know if I can add a check to avoid the application to crash.\r\n\r\nThanks !"}}