Advertisement
Sketchware

Mostra as informações do aplicativo

Jan 20th, 2023
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. button.setOnClickListener(new View.OnClickListener() {
  2.     @Override
  3.     public void onClick(View v) {
  4.         Intent intent = new Intent();
  5.         intent.setAction(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
  6.         Uri uri = Uri.fromParts("package", MainActivity.this.getPackageName(), null);
  7.         intent.setData(uri);
  8.         MainActivity.this.startActivity(intent);
  9.     }
  10. });
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement