Yes, the examples are mostly aimed at drawing in OpenGL ES through the
native side.  I will see if we can get an example created that draws
through the java side and allows use of the touchpad events.

Danny Zubiate
Developer Support Engineer
Sony Ericsson Mobile Communications


On Oct 20, 6:46 pm, Paul Lamb <paulsc...@gmail.com> wrote:
> Internet timed out, sorry if this double-posts.  I have that document
> and code examples already (they are what my project is based on).
> However they deal almost exclusively with the native code, and do not
> even talk about graphics, native or otherwise.  The one example that
> even has a Java component merely passes input through JNI, nothing
> about setting the content view of the NativeActivity, which is what my
> question here is about.  Know of anythe examples somewhere on how to
> do that?
>
> On Oct 20, 7:22 pm, "Danny.Zubiate" <danny.zubi...@gmail.com> wrote:
>
>
>
> > 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...
>
> > 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 <paulsc...@gmail.com> 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.- Hide quoted text -
>
> - Show quoted text -

-- 
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