|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { |
|
|
public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) { |
|
|
super.onRequestPermissionsResult(requestCode, permissions, grantResults); |
|
|
super.onRequestPermissionsResult(requestCode, permissions, grantResults); |
|
|
if (requestCode == REQUEST_PERMISSIONS) { |
|
|
|
|
|
|
|
|
if (requestCode == REQUEST_PERMISSION) { |
|
|
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { |
|
|
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { |
|
|
// Berechtigungen wurden gewährt |
|
|
// Berechtigungen wurden gewährt |
|
|
Toast.makeText(this, "Berechtigungen gewährt", Toast.LENGTH_SHORT).show(); |
|
|
Toast.makeText(this, "Berechtigungen gewährt", Toast.LENGTH_SHORT).show(); |