Skip to content

Instantly share code, notes, and snippets.

@PomepuyN
Created February 8, 2015 08:53
Show Gist options
  • Save PomepuyN/db67516349330ad9c988 to your computer and use it in GitHub Desktop.
Save PomepuyN/db67516349330ad9c988 to your computer and use it in GitHub Desktop.
Gear Live issue
DisplayManager.DisplayListener displayListener = new DisplayManager.DisplayListener() {
@Override
public void onDisplayAdded(int displayId) {
}
@Override
public void onDisplayRemoved(int displayId) {
}
@Override
public void onDisplayChanged(int displayId) {
try {
Log.d(TAG, "onDisplayChanged " + displayManager.getDisplay(displayId).getState());
} catch (NullPointerException ignored) {
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment