Forum Xamarin.Android

how to make Intent.ActionCall

ChristopheBERNARDChristopheBERNARD BEMember ✭✭✭✭✭

Hello all,
i'm working with vs 2017 and xamarin and i have one device with android 6.0 on it.
I'm trying to make a phone call by click on a button ...rather simple but i encoutered a problem ...

Everytime the app crash because with this message } from ProcessRecord{609832d 26650:AppPhoneClick.AppPhoneClick/u0a186} (pid=26650, uid=10186) with revoked permission android.permission.CALL_PHONE

but i have put the permission into the manifest ...
If i delete the permission inside the manifest of course the app crash again ...

anyone have an idea about how to make a call WITHOUT uses the phone dial > intent ?

//click button Intent call = new Intent(Intent.ActionCall); call.SetData(Uri.Parse("tel: ******")); StartActivity(call);

Best Answers


Sign In or Register to comment.