Skip to content

Instantly share code, notes, and snippets.

@AlexPrestonSB
Created May 3, 2021 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexPrestonSB/e1e10eb8dd83ba6ca13023568da8ef2f to your computer and use it in GitHub Desktop.
Save AlexPrestonSB/e1e10eb8dd83ba6ca13023568da8ef2f to your computer and use it in GitHub Desktop.
Initializing the butShareScreen, and adding a click listener.
// Share screen button
butShareScreen = (Button) findViewById(R.id.butShareScreen);
butShareScreen.setOnClickListener(
new View.OnClickListener() {
@Override
public void onClick(View v) {
// Run this method when this button is clicked
startScreenShare();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment