On Thursday, August 18, 2011 10:46:11 AM UTC+3, Jeffrey wrote:
>
>
> public boolean onTouchEvent(final MotionEvent event) {
> queueEvent(new Runnable(){
> public void run() {
> mRenderer.setColor(event.getX() / getWidth(),
> event.getY() / getHeight(), 1.0f);
> }});
> return true;
> }
>
> does not not work. I get the following error "The method
> queueEvent(new Runnable(){}) is undefined for the type Main"
The method queueEvent() is defined for
android.opengl.GLSurfaceView<http://developer.android.com/reference/android/opengl/GLSurfaceView.html>class.
You are trying to call it from class Main which does not extend this
view class.
--
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