{"id":1805,"date":"2022-08-30T15:19:35","date_gmt":"2022-08-30T15:19:35","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/02\/trigger-io-barcode-scan-doesnt-work-when-it-is-invoked-for-the-first-time-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:19:35","modified_gmt":"2022-08-30T15:19:35","slug":"trigger-io-barcode-scan-doesnt-work-when-it-is-invoked-for-the-first-time-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/trigger-io-barcode-scan-doesnt-work-when-it-is-invoked-for-the-first-time-collection-of-common-programming-errors\/","title":{"rendered":"Trigger io barcode scan doesn&#39;t work when it is invoked for the first time-Collection of common programming errors"},"content":{"rendered":"<p>This sounds like the app is being forcefully closed when the camera is started, due to device resource constraints.<\/p>\n<p>If you look at the output of &#8220;adb logcat&#8221; in a terminal, you&#8217;ll probably see a message about an unhandled intent.<\/p>\n<p>In this case, there&#8217;s not too much we can do &#8211; the Android OS has started killing processes to free up memory. We always keep our wrapper as lightweight as possible, and will continue to look for areas to increase efficiency.<\/p>\n<p>We have only seen this problem occur with any regularity on low-spec devices running later versions of Android. If it&#8217;s happening a lot for you, check your app&#8217;s not leaking memory &#8211; again, the output of &#8220;adb logcat&#8221; can show GC activity.<\/p>\n<p id=\"rop\"><small>Originally posted 2013-12-02 01:35:15. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>This sounds like the app is being forcefully closed when the camera is started, due to device resource constraints. If you look at the output of &#8220;adb logcat&#8221; in a terminal, you&#8217;ll probably see a message about an unhandled intent. In this case, there&#8217;s not too much we can do &#8211; the Android OS has [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1805","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1805"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1805\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}