12

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

naresh
  • 10,332
  • 25
  • 81
  • 124
  • 1
    Is this a serious question? Permissions are there to show the user what your app is capable of. If you could bypass that the whole permission system would be pointless. –  Mar 13 '12 at 13:40
  • Yes @slukian is any other alternative is there for doing this? – naresh Mar 13 '12 at 13:53
  • @alextsc how to do that?(pointless) – naresh Mar 13 '12 at 13:54

2 Answers2

42

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);
Kuffs
  • 35,581
  • 10
  • 79
  • 92
0

No, you cannot invoke the phone without specifying that permission. This is by design, to protect users from malicious apps.

Guy Starbuck
  • 21,603
  • 7
  • 53
  • 64
  • is any other alternative is there for making a call without this? – naresh Mar 13 '12 at 13:50
  • @naresh, see this answer http://stackoverflow.com/questions/15842328/android-intent-action-call-uri/27522600#27522600 – iBog Dec 18 '14 at 10:30