Back to project page android-gear.
The source code is released under:
MIT License
If you think the Android project android-gear listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.androidgear.core; /* w w w . j a va 2 s .co m*/ public abstract class GearCommands { private static GearCommands instance; protected GearCommands() { } public static void prepare(Class<? extends GearCommands> clazz) { try { instance = clazz.newInstance(); } catch (Exception e) { throw new RuntimeException(e); } } public static GearCommands instance() { return instance; } public abstract void killGame(); public abstract void vibrate(long milis); }