{ "id": "126356", "key": "AC-2131", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2014-02-25T03:34:55.000+0000", "created": "2014-02-13T11:11:46.000+0000", "labels": [ "blackberry" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:06.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14544", "name": "Alloy", "description": "Please enter tickets related to the Alloy here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Hello,\r\n\r\nYou know default path on Titanium project is /Resources while we need to add the BB10 path before \"app/native/assets/\"\r\n\r\nfor example\r\n{code:title=alloy.js}\r\nif (OS_BLACKBERRY){\r\n var url = 'app/native/assets/strings.xml';\r\n} else {\r\n var url = 'strings.xml';\r\n}\r\n\r\nvar file = Ti.Filesystem.getFile(url);\r\n{code}\r\n\r\nCan we please make BlackBerry path like anyone else, or add this problem in documentation\r\n\r\nThanks a lot", "attachment": [], "flagged": false, "summary": "BlackBerry: Ti.Filesystem.getFile path is wrong", "creator": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "subtasks": [], "reporter": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "environment": "Mac OS 10.9.1\r\nMomentics 2 with BB 10.2.0\r\nCLI: 3.2.1GA\r\nAlloy: 1.3.1\r\nAppcelerator Studio, build: 3.2.2.201401231451\r\nTitanium SDK version 3.2.1GA / 3.3.0.v20140211145441", "comment": { "comments": [ { "id": "294501", "author": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "body": "Maybe we need to use something like that\nQDir::currentPath() + \"/app/native/assets/\" + (path of file)\n", "updateAuthor": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2014-02-24T22:48:17.000+0000", "updated": "2014-02-24T22:48:17.000+0000" }, { "id": "294503", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can you try \n{code}\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'strings.xml');\n{code}\nThis should work in all platforms.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T22:51:47.000+0000", "updated": "2014-02-24T22:51:47.000+0000" }, { "id": "294509", "author": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "body": "I'm already using this workaround\n\nTi.Filesystem.getFile('app/native/assets/strings.xml');\n\nand working fine, also your solution working fine\n\nThanks", "updateAuthor": { "name": "hazemkhaled", "key": "hazemkhaled", "displayName": "Hazem Khaled", "active": true, "timeZone": "Europe/Istanbul" }, "created": "2014-02-24T23:24:19.000+0000", "updated": "2014-02-24T23:24:19.000+0000" }, { "id": "294555", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "That is not a workaround, that is the proper way to do it. \r\n{code}\r\nvar file = Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, 'strings.xml');\r\n{code}\r\nClosing as invalid, thanks for reporting.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-25T03:34:56.000+0000", "updated": "2014-02-25T03:34:56.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }