[TIMOB-24303] Hyperloop Android - Wrapper not generated for v4 class
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Resolved |
Resolution | Won't Fix |
Resolution Date | 2019-08-08T18:36:23.000+0000 |
Affected Version/s | Release 6.0.1 |
Fix Version/s | n/a |
Components | Hyperloop |
Labels | aar, android, hyperloop |
Reporter | Rodolfo Perottoni |
Assignee | Unknown |
Created | 2016-12-07T11:56:32.000+0000 |
Updated | 2019-12-02T23:06:28.000+0000 |
Description
How to reproduce:
* Import the attached *jars and aar* to your hyperloop project, under the *app/platform/android* folder.
* Add the following activity declaration in the *tiapp.xml* file:
<manifest>
<application android:theme="@style/MaterialTheme">
<activity android:name="au.com.orangedigital.smileseeker.GameActivity" android:theme="@style/GameTheme" android:screenOrientation="nosensor" android:configChanges="screenSize|orientation|keyboardHidden"/>
</application>
</manifest>
* Create a *custom_theme.xml* file under */app/platform/android/res/values*. Put this in its content:
<resources>
<style name="GameTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">#9adacc</item>
<item name="colorPrimaryDark">#89beb6</item>
<item name="colorAccent">#89beb6</item>
</style>
</resources>
* Use the following code in any window:
var GameActivity = require('au.com.orangedigital.smileseeker.GameActivity');
var intent = Ti.Android.createIntent({
className: 'au.com.orangedigital.smileseeker.GameActivity',
});
Ti.Android.currentActivity.startActivity(intent);
* Build the project.
* An exception will be thrown:
Uncaught Error: Requested module not found: android.support.v4.app.BaseFragmentActivityHoneycomb
The JS wrapper for this native class is not generated.
My native class extends from AppCompatActivity, which extends from FragmentActivity, which extends from BaseFragmentActivityJB, which extends from *BaseFragmentActivityHoneycomb*. The last are abstract classes. I believe Hyperloop doesn't generate JS wrappers for that.
I just want to launch my native activity without having to import all the support libraries with Hyperloop. Is there a way to achieve this without having to go through all this headache??
Attachments
File | Date | Size |
---|---|---|
android-support-v4.jar | 2016-12-07T11:38:15.000+0000 | 1422188 |
android-support-v7-appcompat.jar | 2016-12-07T11:38:15.000+0000 | 657138 |
toothjump.aar | 2016-12-07T11:33:14.000+0000 | 226238 |
No comments