[TIMOB-23953] Hyperloop: Android - Fails to cast Ti.Android.Intent to native Android Intent
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-09-29T07:03:32.000+0000 |
Affected Version/s | hyperloop 1.2.7 |
Fix Version/s | Release 6.0.0, Hyperloop 2.0.0, hyperloop 1.2.8 |
Components | Hyperloop |
Labels | Android, Hyperloop |
Reporter | Brian Knorr |
Assignee | Christopher Williams |
Created | 2016-09-27T16:22:54.000+0000 |
Updated | 2016-10-25T22:55:41.000+0000 |
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:
var Intent = require('android.content.Intent');
var intent = Ti.Android.createIntent();
var nativeIntent = new Intent(intent); // Fails
{quote}
[ERROR] : HyperloopProxy: (main) [209,209] Unable to find matching constructor for class: android.content.Intent, args: [org.appcelerator.titanium.proxy.IntentProxy@1a8a7c43]
{quote}
master: https://github.com/appcelerator/hyperloop.next/pull/78 1_2_X: https://github.com/appcelerator/hyperloop.next/pull/80
Test-case:
Verified the fix. Closing. Appc Studio : 4.8.0.201610171310 SDK Version : 6.0.0.v20161025114857 Mac OS Version : 10.11.6 Xcode Version : Xcode 8.0 Build version 8A218a Appc CLI AND Appc NPM : {"NPM":"4.2.8-9","CLI":"6.0.0-65"} Ti CLI : 5.0.10 Alloy : 1.9.3 Node : v4.6.0 Environment: preprod Nexus 6 : android 6.0.1