Hi,

I have this View:

public class Launcher4A extends SurfaceView implements
SurfaceHolder.Callback, OnKeyListener
{
   public Launcher4A(Context context)
   {
      super(context);
      System.loadLibrary("tcvm");
      instance = this;
      surfHolder = getHolder();
      surfHolder.addCallback(this);
      setWillNotDraw(true);
      setFocusable(true);
      requestFocus();
      setOnKeyListener(this);
   }

   public boolean onKey(View v, int keyCode, KeyEvent event)
   {
      Log.i("TotalCross", "onKeyDown "+keyCode);
      return true;
   }
}

When i run the application in Emulator, the onKey is never called if
the Launcher4A class was clicked inside. Actually, i was able to get
the onKeyDown log once, when i clicked somewhere outside the view, but
i'm unable to get it when the view has focus.

Am I missing something?

Best,

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

Reply via email to