Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24303] Hyperloop Android - Wrapper not generated for v4 class

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionWon't Fix
Resolution Date2019-08-08T18:36:23.000+0000
Affected Version/sRelease 6.0.1
Fix Version/sn/a
ComponentsHyperloop
Labelsaar, android, hyperloop
ReporterRodolfo Perottoni
AssigneeUnknown
Created2016-12-07T11:56:32.000+0000
Updated2019-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

FileDateSize
android-support-v4.jar2016-12-07T11:38:15.000+00001422188
android-support-v7-appcompat.jar2016-12-07T11:38:15.000+0000657138
toothjump.aar2016-12-07T11:33:14.000+0000226238

Comments

No comments

JSON Source