Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Intent intent = new Intent(Intent.ACTION_CALL);
- Uri uri2 = Uri.parse("tel:4");
- intent.setData(uri2);
- intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
- if (ActivityCompat.checkSelfPermission(ServicioCallerOverride.this, Manifest.permission.CALL_PHONE) == PackageManager.PERMISSION_GRANTED) {
- startActivity(intent);
- }
- }
- });
Add Comment
Please, Sign In to add comment