Skip to content

Instantly share code, notes, and snippets.

@josh-burton
Created July 12, 2014 06:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josh-burton/e6c71859d28027fe1a83 to your computer and use it in GitHub Desktop.
Save josh-burton/e6c71859d28027fe1a83 to your computer and use it in GitHub Desktop.
Android Wear Watchface Tick Receiver
IntentFilter timeTickIntentFilter = new IntentFilter("com.google.android.wearable.home.action.WEARABLE_TIME_TICK");
listener.registerReceiver(mTimeTickReceiver, timeTickIntentFilter);
public final BroadcastReceiver mTimeTickReceiver = new BroadcastReceiver() {
public void onReceive(Context context, Intent intent) {
//ontick
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment