I am trying to implement an input option for Xperia Play touch
controls in one of my projects. The only way to get this input is
through a NativeActivity, but I don't want to rewrite my entire
project in native code.  Instead, I would like to display the
NativeActivity on top of the existing Activity (sending through touch
and key events).

For this to work, the NativeActivity would have to do one of the
following:
1) Not grab the display, so the other Activity remains visible; OR
2) Be invisible so the other Activity is visible underneath (not sure
if these two are even possible); OR
3) Change the NativeActivity's content view to that of the other
Activity

It seems like option #3 is the most likely way to do this, but the API
is very different in native code than in Java code.  Is it possible to
set the content view of a native activity to show components that are
created in the Java code (such as a FrameLayout or ImageView for
example)?

Is there another way to achieve what I'm after besides the three that
I thought of? Let me know if you need a better explanation or some
code to better describe what I'm talking about.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to