{ "id": "172774", "key": "MOD-2484", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-12-19T19:30:13.000+0000", "created": "2018-12-19T18:31:44.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "Escalation" ], "versions": [], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-12-19T19:30:13.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14511", "name": "Barcode" } ], "description": "Hi, \r\nGetting TiRHelper$ResourceNotFoundException when testing with ti.barcode(v 4.0.1 and 4.0.3) android module. \r\n\r\nTested with the below OS \r\nAndroid 6,7,8 \r\nsamsung s7,s8 and pixel phones \r\n\r\nTest Code:\r\n{code}\r\nvar barcode = require('ti.barcode');\r\nfunction doClick(e) {\r\n\r\n\tbarcode.allowRotation = false;\r\n\tbarcode.displayedMessage = \"\";\r\n\tbarcode.allowMenu = false;\r\n\tbarcode.allowInstructions = false;\r\n\tbarcode.useLED = true;\r\n\taddBarcodeEventListeners();\r\n\tbarcode.capture({\r\n\t\tanimate : true,\r\n\t\toverlay : Ti.UI.createView({\r\n\t\t\tbackgroundColor : 'transparent',\r\n\t\t\ttop : 0,\r\n\t\t\tright : 0,\r\n\t\t\tbottom : 0,\r\n\t\t\tleft : 0\r\n\t\t}),\r\n\t\tshowCancel : false,\r\n\t\tshowRectangle : true,\r\n\t\tkeepOpen : false\r\n\t});\r\n\r\n}\r\n\r\nfunction addBarcodeEventListeners() {\r\n\t//timeOutLib.clearTimer();\r\n\tbarcode.addEventListener(\"error\", onBarcodeError);\r\n\tbarcode.addEventListener(\"cancel\", onBarcodeCancel);\r\n\tbarcode.addEventListener(\"success\", onBarcodeSuccess);\r\n}\r\n\r\nfunction onBarcodeError(e) {\r\n\tTi.API.info('An Error occured: ' + e);\r\n\t//utils.showToast(L(\"scan_fail_msg\"));\r\n\tremoveBarcodeEventListeners();\r\n}\r\n\r\nfunction onBarcodeCancel(e) {\r\n\tTi.API.info('Cancel received');\r\n\tremoveBarcodeEventListeners();\r\n\r\n}\r\n\r\nfunction onBarcodeSuccess(e) {\r\n\tTi.API.info('Success called with barcode: ' + e.result);\r\n\tremoveBarcodeEventListeners();\r\n}\r\n\r\n$.index.open();\r\n{code}\r\n\r\n1) Titanium SDK: 7.4.1 , 7.5.0\r\n2) ti.barcode android module : 4.0.1 or 4.0.3\r\n3) Blank screen on the UI with the below log. \r\n\r\nError Log:\r\n{code}\r\n[WARN] : W/System.err: org.appcelerator.titanium.util.TiRHelper$ResourceNotFoundException: Resource not found: layout.capture\r\n[WARN] : W/System.err: \tat org.appcelerator.titanium.util.TiRHelper.lookupResource(TiRHelper.java:100)\r\n[WARN] : W/System.err: \tat org.appcelerator.titanium.util.TiRHelper.getResource(TiRHelper.java:74)\r\n[WARN] : W/System.err: \tat org.appcelerator.titanium.util.TiRHelper.getApplicationResource(TiRHelper.java:156)\r\n[WARN] : W/System.err: \tat ti.barcode.RHelper.getLayout(RHelper.java:25)\r\n[WARN] : W/System.err: \tat com.google.zxing.client.android.CaptureActivity.onCreate(CaptureActivity.java:173)\r\n[WARN] : W/System.err: \tat android.app.Activity.performCreate(Activity.java:7183)\r\n[WARN] : W/System.err: \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1220)\r\n[WARN] : W/System.err: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2910)\r\n[WARN] : W/System.err: \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3032)\r\n[WARN] : W/System.err: \tat android.app.ActivityThread.-wrap11(Unknown Source:0)\r\n[WARN] : W/System.err: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)\r\n[WARN] : W/System.err: \tat android.os.Handler.dispatchMessage(Handler.java:105)\r\n[WARN] : W/System.err: \tat android.os.Looper.loop(Looper.java:164)\r\n[WARN] : W/System.err: \tat android.app.ActivityThread.main(ActivityThread.java:6940)\r\n[WARN] : W/System.err: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[WARN] : W/System.err: \tat com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)\r\n[WARN] : W/System.err: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)\r\n[WARN] : ResourceType: No package identifier when getting value for resource number 0x00000000\r\n{code}\r\nAttached the sample code(tibarcodetesting.zip) for reference", "attachment": [ { "id": "65995", "filename": "tibarcodetesting.rar", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2018-12-19T18:29:41.000+0000", "size": 3753632, "mimeType": "application/x-rar-compressed" } ], "flagged": false, "summary": "ti.barcode : Getting TiRHelper$ResourceNotFoundException when testing with ti.barcode(v 4.0.1 and 4.0.3) android module.", "creator": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "subtasks": [], "reporter": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "environment": "Operating System\r\n Name = Microsoft Windows 10 Pro\r\n Version = 10.0.17134\r\n Architecture = 32bit\r\n # CPUs = 4\r\n Memory = 17091956736\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\nTitanium SDK\r\n SDK Version = 7.4.1.GA , 7.5.0.GA", "closedSprints": [ { "id": 1104, "state": "closed", "name": "2018 Sprint 26", "startDate": "2018-12-17T15:56:00.172Z", "endDate": "2018-12-21T15:56:00.000Z", "completeDate": "2018-12-26T17:42:17.145Z", "originBoardId": 114 } ], "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }