Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'll post the answer here for others with the same problem, since I did eventually figure out a method that works.</p> <p>In the onCreate() method, if you are setting any particular window flags (FEATURE_NO_TITLE, FLAG_FULLSCREEN, FLAG_KEEP_SCREEN_ON, etc) do those before you call super.onCreate() (or they'll be ignored). Then wherever you would normally put this:</p> <pre><code>setContentView( whatever ); </code></pre> <p>Do this instead:</p> <pre><code>getWindow().takeSurface( null ); getWindow().setContentView( whatever ); </code></pre> <p>That's the basic way to get the content to be controlled from the Java side. Any place in your code where you deal with the content, use "getWindow()" instead of "this".</p> <p>Some other things to keep in mind, are that the normal onKey and onTouch methods will not be called (their native equivalents will be instead), so if you need to be able to process input on the Java side, you'll have to set up some JNI linkage to send the information from native to Java. I believe everything else is included in the official XPeria Play touchpad sample code (the additions to the AndroidManifest.xml and what-not).</p> <p>If you want to look at my project for reference, it is open-source and can be found at:</p> <p><a href="http://www.paulscode.com/forum/index.php?topic=75.msg1540#msg1540" rel="noreferrer">http://www.paulscode.com/forum/index.php?topic=75.msg1540#msg1540</a></p> <p>Just click the "source code" link next to "XPeria Play Touch-Pad Example". It may not be all that useful to you though, because it is a rather large project and may be difficult to find what you are looking for. If you have any problems, post a question on my forum there or email me, and I'll be happy to help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload