{ "id": "163484", "key": "TIMOB-23953", "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": [ { "id": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" }, { "id": "18247", "name": "Hyperloop 2.0.0", "archived": false, "released": true, "releaseDate": "2016-10-18" }, { "id": "18334", "name": "hyperloop 1.2.8", "archived": false, "released": true, "releaseDate": "2017-02-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-09-29T07:03:32.000+0000", "created": "2016-09-27T16:22:54.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "Android", "Hyperloop" ], "versions": [ { "id": "18264", "name": "hyperloop 1.2.7", "archived": false, "released": true, "releaseDate": "2017-02-06" } ], "issuelinks": [ { "id": "52820", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "163490", "key": "TIMOB-23955", "fields": { "summary": "Hyperloop - not possible to start a native activity and get its result", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "updated": "2016-10-25T22:55:41.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": "13715", "name": "Hyperloop", "description": "Hyperloop project" } ], "description": "We need the ability to cast a Ti Intent to a native Android Intent so we can use the method getParcelableExtra. Unfortunately Hyperloop throws an error when casting. Here is the simple way to reproduce:\r\n\r\n{code:javascript}\r\nvar Intent = require('android.content.Intent');\r\nvar intent = Ti.Android.createIntent();\r\nvar nativeIntent = new Intent(intent); // Fails\r\n{code}\r\n\r\n{quote}\r\n[ERROR] : HyperloopProxy: (main) [209,209] Unable to find matching constructor for class: android.content.Intent, args: [org.appcelerator.titanium.proxy.IntentProxy@1a8a7c43]\r\n{quote}", "attachment": [], "flagged": false, "summary": "Hyperloop: Android - Fails to cast Ti.Android.Intent to native Android Intent", "creator": { "name": "btknorr", "key": "btknorr", "displayName": "Brian Knorr", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "btknorr", "key": "btknorr", "displayName": "Brian Knorr", "active": true, "timeZone": "America/Chicago" }, "environment": "Hyperloop on Android", "closedSprints": [ { "id": 722, "state": "closed", "name": "2016 Sprint 20 SDK", "startDate": "2016-09-28T16:50:17.299Z", "endDate": "2016-10-12T16:50:00.000Z", "completeDate": "2016-10-10T06:17:01.016Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "397555", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "master: https://github.com/appcelerator/hyperloop.next/pull/78\r\n1_2_X: https://github.com/appcelerator/hyperloop.next/pull/80", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-28T19:37:16.000+0000", "updated": "2016-09-28T20:23:53.000+0000" }, { "id": "397563", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Test-case:\r\n{code:javascript}\r\nvar Intent = require('android.content.Intent');\r\nvar Activity = require('android.app.Activity');\r\nvar Uri = require(\"android.net.Uri\");\r\n\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: \"#fff\"\r\n});\r\n\r\nvar btn = Ti.UI.createButton({\r\n title: \"Trigger\"\r\n});\r\n\r\nbtn.addEventListener(\"click\", openIntent);\r\n\r\nwin.add(btn);\r\nwin.open();\r\n\r\nfunction openIntent() {\r\n var activity = new Activity(Ti.Android.currentActivity);\r\n \r\n var intent = Ti.Android.createIntent({\r\n action: Ti.Android.ACTION_VIEW\r\n });\r\n \r\n var nativeIntent = new Intent(intent);\r\n nativeIntent.setData(Uri.parse(\"sms://\"));\r\n nativeIntent.putExtra(\"sms_body\", \"Hello world!\"); \r\n \r\n activity.startActivity(nativeIntent);\r\n}\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-28T21:04:37.000+0000", "updated": "2016-09-28T21:04:37.000+0000" }, { "id": "399826", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nClosing.\r\n\r\nAppc Studio : 4.8.0.201610171310\r\nSDK Version : 6.0.0.v20161025114857\r\nMac OS Version : 10.11.6\r\nXcode Version : Xcode 8.0 Build version 8A218a\r\nAppc CLI AND Appc NPM : {\"NPM\":\"4.2.8-9\",\"CLI\":\"6.0.0-65\"}\r\nTi CLI : 5.0.10\r\nAlloy : 1.9.3\r\nNode : v4.6.0\r\nEnvironment: preprod\r\nNexus 6 : android 6.0.1\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-25T22:55:23.000+0000", "updated": "2016-10-25T22:55:23.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }