Created
September 19, 2018 13:35
-
-
Save Rizwanmisger/fdb2db88e4c9adf847837afd1102d10c to your computer and use it in GitHub Desktop.
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
public void onCreate(…){ | |
//some UI setup | |
mVideoPlayer = new VideoPlayer(); | |
getLifecycle().addObserver(mVideoPlayer); | |
} | |
public void onDestroy(){ | |
getLifecycle().removeObserver(mVideoPlayer); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment