Created
July 12, 2014 06:10
-
-
Save josh-burton/e6c71859d28027fe1a83 to your computer and use it in GitHub Desktop.
Android Wear Watchface Tick Receiver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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