{ "id": "122799", "key": "AC-2474", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-01-19T08:06:12.000+0000", "created": "2013-11-22T12:42:29.000+0000", "labels": [ "android", "defect", "studio3" ], "versions": [], "issuelinks": [ { "id": "33970", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "93519", "key": "AC-2943", "fields": { "summary": "Ti.Platform.openURL doesn't work on Android", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:31.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I am just trying to open a browser using the following command:\r\n\r\nTi.Platform.openURL(\"http://www.google.com\");\r\n\r\nReally nothing fancy. I've tried without 'http' and with different URLs. This happens on the emulator and a device. I've tried with Android 4.0.3 and 4.2 with the same result.", "attachment": [ { "id": "44120", "filename": "openURL.PNG", "author": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-22T12:42:29.000+0000", "size": 91996, "mimeType": "image/png" }, { "id": "44121", "filename": "stack.PNG", "author": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-22T15:25:15.000+0000", "size": 9489, "mimeType": "image/png" }, { "id": "44123", "filename": "studioStack.PNG", "author": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-22T16:17:28.000+0000", "size": 35819, "mimeType": "image/png" }, { "id": "44628", "filename": "Titanium openURL problem.docx", "author": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-16T20:23:11.000+0000", "size": 226960, "mimeType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document" } ], "flagged": false, "summary": "Calling Ti.Platform.openURL throws Unknown Java Exception", "creator": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Windows 8.1, Titanium Studio Build 3.1.3.201309132423, Android 4.0.3 emulator and device", "comment": { "comments": [ { "id": "280725", "author": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "More information: If I put Ti.Platform.openURL on my first window, it works as expected. I placed the same code on the second window in the app and I get the Unknown Java exception.", "updateAuthor": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-22T15:21:44.000+0000", "updated": "2013-11-22T15:21:44.000+0000" }, { "id": "280830", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\r\nas you mentioned, when we test, it just works. Please share with us the structure of your code or similar, so we can reproduce this.\r\n\r\nBest,\r\nMauro", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-22T23:53:07.000+0000", "updated": "2013-11-22T23:53:07.000+0000" }, { "id": "281461", "author": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've uploaded the code without images. The offending line is on controller/OrdersController.js line 32.", "updateAuthor": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-26T18:38:22.000+0000", "updated": "2013-11-26T18:38:22.000+0000" }, { "id": "283681", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\nI'm testing your code and:\n\n- We don't have any login/user.\n- In the line before the openURL, you are building a url with a local prefix for a maps app, right? Did you tried to open that one directly in the browser or similar to see if that's the problem?\n- Please add a try-catch so you can get more info on what failed in the openURL. \n\nYour app is not suitable to be used as testcase, because of its complexity. If possible, please remove it from this ticket, since you have a lot of information that looks like is private, and this is a public forum.\n\nBest,\n\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-12-10T23:27:07.000+0000", "updated": "2013-12-10T23:27:07.000+0000" }, { "id": "283724", "author": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have removed the source code.\n\nI've tried a simple url such as http://www.google.com with the same result (as shown in 'openURL.png'). Any stack trace info I was able to retrieve is in the other two images I posted. I also built the url, copied it, and pasted it into a browser. It loaded fine.", "updateAuthor": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-11T02:21:05.000+0000", "updated": "2013-12-11T02:21:05.000+0000" }, { "id": "283800", "author": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "One other thing...I get the same error when my URL is a telephone number (tel://7705551212).", "updateAuthor": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-11T12:31:39.000+0000", "updated": "2013-12-11T12:31:39.000+0000" }, { "id": "283846", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello Van,\nif you create a simple testcase with Titanium, and use the openURL, are you able to reproduce the issue? i.e., is it a windows 8 focused issue?\n\nIf that doesn't fail for you, then is something else in your code, but let's test the above sample and then we decide how to proceed on this. \n\nThanks!\n\nBest,\nMauro ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-12-11T18:55:27.000+0000", "updated": "2013-12-11T18:55:27.000+0000" }, { "id": "283854", "author": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Mauro\r\n\r\nI did that as well and it's hit or miss. I've placed code on the first window of the app that opens google via openURL. I proceeded to the next window and did the same. It worked. I can't find a rhyme or reason for it. Initially I thought it had something to do with the code being in a custom event but I tried that as well.\r\n\r\nI will try a few other simple scenarios.\r\n\r\nThanks\r\nVan", "updateAuthor": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-11T19:28:43.000+0000", "updated": "2013-12-11T19:29:28.000+0000" }, { "id": "284538", "author": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Mauro\n\nI've attached a document containing the results of adding very simple buttons that attempt to open google.com using Ti.Platform.openURL('http://www.google.com'). I hope it will be helpful.\n\nThanks\nVan", "updateAuthor": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-16T20:22:40.000+0000", "updated": "2013-12-16T20:22:40.000+0000" }, { "id": "285540", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "We tried to reproduce this issue with the code below. We can't reproduce this problem with latest 3.2.0 GA release. Please try this sample code and let us know if the issue persists.\r\n\r\nh5. Testing Environment:\r\nAndroid SDK: 4.2.2\r\nTitanium SDK: 3.2.0.GA\r\nTitanium CLI Version: 3.2.0\r\n\r\nh5. Test Code\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\t\ttitle : 'URL TEST',\r\n\t\tnavBarHidden : false\r\n\t});\r\n \r\n\t// Create a Button.\r\n\tvar go = Ti.UI.createButton({\r\n\t\ttitle : 'URL TEST',\r\n\t\theight : Ti.UI.SIZE,\r\n\t\twidth : Ti.UI.SIZE,\r\n\t\ttop : 10,\r\n \r\n\t});\r\n \r\n\t// Listen for click events.\r\n\tgo.addEventListener('click', function() {\r\n \r\n\t\tTi.Platform.openURL(\"http://www.google.com\");\r\n \r\n\t});\r\n \r\n\twin.add(go);\r\n\twin.open();\r\n\r\n{code}\r\n\r\nh5. Steps to Test:\r\n1. Create a sample project,\r\n2. Paste this code in app.js file.\r\n3. Run this with testing environment.\r\n4. Click on URL test button\r\n\r\n\r\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-12-22T05:23:51.000+0000", "updated": "2013-12-23T05:03:34.000+0000" }, { "id": "285641", "author": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I will do this, however, I have already done something similar and the code does work. I have placed similar code in the app in question and have seen openURL work as expected (see 'Titanium openURL problem.docx' attachment). The problem is I still get the previously reported java exception. I fully acknowledge it has something to do with my application, however, I do not believe the exception is being thrown because of the way I am calling openURL.\n\nI updated to 3.2.0.GA today hoping it would fix the issue. No luck.", "updateAuthor": { "name": "vandert", "key": "vandert", "displayName": "Van Thompson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-23T16:12:17.000+0000", "updated": "2013-12-23T16:12:17.000+0000" }, { "id": "285770", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~vandert] We have been unable to reproduce this issue with numerous permutations. We need a minimal but complete test case that can reproduce this issue. We would be happy to investigate this issue further once we have a reproducible test.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-25T02:02:59.000+0000", "updated": "2013-12-25T02:02:59.000+0000" }, { "id": "289764", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing since we can't reproduce the issue with our sample and the reporter has not provided a sample to reproduce the error.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-01-27T03:45:44.000+0000", "updated": "2014-01-27T03:45:44.000+0000" } ], "maxResults": 15, "total": 15, "startAt": 0 } } }