Dev waddah Dev waddah - 1 year ago 78
C# Question

ActionDial does not display # in call screen

I have a problem in this code, why does it not display # in call screen?

intent.button.Click += delegate {
var uri = Android.Net.Uri.Parse ("tel:*177*1112223333#");
var intent = new Intent (Intent.ActionDial, uri);
StartActivity (intent);

Answer Source

You have to encode (escape) the Uri to send a "#" to the dialer:

var uri = Android.Net.Uri.Parse("tel:" + Android.Net.Uri.Encode("*177*1112223333#"));
var intent = new Intent(Intent.ActionDial, uri);

enter image description here

Ref: RFC 3966

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download