{ "id": "91111", "key": "TIMOB-8940", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-05-09T16:10:18.000+0000", "created": "2012-04-30T22:14:54.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [], "assignee": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:27:57.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Unable to open google streetview intent. I'm getting an error \"Uncaught Error: No activity found to handle Intent\".\r\nh4.Repro Steps\r\n1. Run the below code in the app.js\r\n2. Click the open button to open the intent and you will get the runtime error.\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: '#ffffff',\r\n\tnavBarHidden: true\r\n\t\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle: \"Open\",\r\n\twidth: 200,\r\n\theight: 40\r\n});\r\n\r\nbutton.addEventListener('click', function() {\r\n\tvar intent = Ti.Android.createIntent({\r\n\t action: Ti.Android.ACTION_VIEW,\r\n\t type: \"google.streetview:cbll=30.427583,-91.137857&cbp=1,90,,0,1.0&mz=mapZoom\"\r\n\t});\r\n\tintent.addCategory(Ti.Android.CATEGORY_DEFAULT);\r\n\tTi.Android.currentActivity.startActivity(intent);\t\r\n})\r\nwin.add(button);\r\n\r\nwin.open();\r\n{code}\r\nPlease find the screenshot and error logs attached.", "attachment": [ { "id": "27473", "filename": "error_log.rtf", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-30T22:14:54.000+0000", "size": 7180, "mimeType": "text/rtf" }, { "id": "27472", "filename": "Intent_error.png", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-30T22:14:54.000+0000", "size": 28420, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Unable to open google street view intent", "creator": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android 2.2.2\r\nTi SDK 2.0.1.GA2", "comment": { "comments": [ { "id": "194057", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Use \"data\" instead of \"type\" when creating the intent.\r\nExample:\r\n\r\n{code}\r\nvar intent = Ti.Android.createIntent({\r\n action: Ti.Android.ACTION_VIEW,\r\n data: \"google.streetview:cbll=30.427583,-91.137857&cbp=1,90,,0,1.0&mz=mapZoom\"\r\n});\r\n{code}\r\n\r\nRan test case with this change and was able to get street view activity to appear fine.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-07T22:40:51.000+0000", "updated": "2012-05-07T22:41:15.000+0000" }, { "id": "194329", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid since the issue was caused by an error in the application code and not a platform bug.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-09T16:10:18.000+0000", "updated": "2012-05-09T16:10:18.000+0000" }, { "id": "411024", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:27:57.000+0000", "updated": "2017-03-09T23:27:57.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }