Answer the question
In order to leave comments, you need to log in
How do I start NativeActivity from Java?
Hello. I need to implement that NativeActivity would be launched from Java code.
I am new to the world of Java and android in general.
Right now my NativeActivity is starting magically. As that itself.
From such XML.
<activity android:name="android.app.NativeActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:screenOrientation="landscape"
android:clearTaskOnLaunch="true">
<!-- Tell NativeActivity the name of our .so -->
<meta-data android:name="android.app.lib_name" android:value="example" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question