I would like to process the pointer hover event in my google tv application but without any success.
As I understand from the documentation I must set OnGenericMotionListener
listener for my widget, but it seems the onGenericMotion()
method does not called.
The constructor of my widget looks like this:
public MyWidget(Context context, AttributeSet attrs){
super(context, attrs);
setOnGenericMotionListener(new OnGenericMotionListener() {
@Override
public boolean onGenericMotion(View v, MotionEvent event) {
Log.d("","Motion");
return false;
});
}
}
Unfortunately I have not real device and must to develop in Google tv emulator. Is it restriction of the emulator or am I making something wrong?