Hi Paul, I suggest you visit the following link and take a look at the tutorial and the code examples there. They should help you to do exactly what you are trying to do with the NativeActivity. The tutorial and code examples provide a couple different methods to add on and manage the necessary NativeActivity.
http://developer.sonyericsson.com/wportal/devworld/technology/android/xperiaplay/overview?cc=gb&lc=en The links you want to visit on that page are: Download a tutorial on how to access the Xperia™ PLAY touch pad>>> and Download code examples on how to access the Xperia™ touch pad>>> Danny Zubiate Developer Support Engineer Sony Ericsson Mobile Communications On Oct 17, 5:48 pm, Paul Lamb <[email protected]> wrote: > 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

