Android - getting touch event position after using setFixedSize()
<p>I have an OpenGL app which needs to run in a set screen size (800x480 in this instance).
I use the command:</p>

<pre><code> this.getHolder().setFixedSize(800, 480)
</code></pre>

<p>in my GLSurfaceView constructor to do this.  This means that on devices with larger screens, my app still takes up the whole screen.</p>

<p>My this has the consequence that in the views onTouchEvent(), the getX() &amp; getY() methods no longer return a value scaled from (0,0) to (800,480).</p>

<p>I tried applying a scale factor based on the true screen size to the getX() values, but have been unable to exactly determine what it should be.</p>

<p>How would I scale getX() &amp; getY()?  Is there a different method I should be using to scale the screen to my desired resolution in the first place?</p>
