I use a ControlExtension for Sony SmartWatch 2 and I have a click-handler:
@Override
public void onObjectClick(final ControlObjectClickEvent event) {
switch (event.getClickType())
{
case Control.Intents.CLICK_TYPE_LONG:
Log.i("onObjectClick", "long press");
break;
case Control.Intents.CLICK_TYPE_SHORT:
Log.i("onObjectClick", "press");
break;
}
}
When I click on the button, I get press
in my LogCat as expected.
When I hold the button I get long press
(just as I want it).
But when I release the button after a long-press, I get press
again.
How can I change this behavior?