Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android - call_phone permission is required? [closed]

Tags:

android

In my app i want to make a one tap call without using the android.permission.CALL_PHONE. is it possible? because of this permission user scare to install this app.

thanks

like image 524
naresh Avatar asked Mar 13 '12 13:03

naresh


1 Answers

pre-load the number you want to call in the dialer and leave pressing the "Call" button to the user. This does not require any extra permissions.

Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse("tel:" + PhoneNumber));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
like image 88
Kuffs Avatar answered Sep 21 '22 12:09

Kuffs