Advertisement
Sketchware

Abre as configurações celular

Jan 20th, 2023
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. Button button = (Button) findViewById(R.id.button);
  2. button.setOnClickListener(new View.OnClickListener() {
  3.     @Override
  4.     public void onClick(View v) {
  5.         Intent openSettings = new Intent(android.provider.Settings.ACTION_SETTINGS);
  6.         startActivity(openSettings);
  7.     }
  8. });
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement