I am new to NDK and I am writing a game using a 3D Engine -Ogre. I have something like this in the manifest pointing to my native lib:
<activity
android:name="android.app.NativeActivity"
android:screenOrientation="landscape"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<!-- Tell NativeActivity the name of or .so -->
<meta-data android:name="android.app.lib_name" android:value="OgreAndroidTemplate" />
Then I start this activity by calling this from another java Activity:
Intent engineIntent = new Intent( _context, NativeActivity.class);
startActivity(engineIntent);
However, I want some UI handling on top of my game (etc. menu buttons or advertisements ) , and want this to be handled at java side. Is there any way I can add another view or activity for this on top of my game?
Many thanks in advance.
Not sure about the NDK, but if you were using normal Android XML layouts you could have a FrameLayout