setWatchFaceStyle(new WatchFaceStyle.Builder(mService) .setAcceptsTapEvents(true) // other style customizations .build());
@Override public void onTapCommand(int tapType, int x, int y, long eventTime) { }
TAP_TYPE_TOUCH
TAP_TYPE_TAP
TAP_TYPE_TOUCH_CANCEL
PackageInfo packageInfo = PackageManager.getPackageInfo("com.google.android.wearable.app", 0); if (packageInfo.versionCode > 720000000) { // Supports taps - cache this result to avoid calling PackageManager again } else { // Device does not support taps yet }