Is there a way to set the content of a NativeActivity to a component created in Java (such as a FrameLayout, ImageView, etc)? I have a need to use a NativeActivity (for getting touchpad input on Xperia Play), but I also need to be able to view components created in the Java code.
I've tried overriding the onCreate command and calling setContentView there, but although that doesn't throw any errors, it doesn't do anything either (apparently because the content view is already set by the native code). Is there some sort of window id or something that I could pass to the native code to tell it what the content view should be, or can this somehow be set up in the XML to set the NativeActivity's content view to a component that I can modify from Java?
Let me know if you need any more information.