使用Monodroid发起呼叫

时间:2011-10-24 10:22:31

标签: xamarin.android

我找到了使用Android.Telephony.Gsm.SmsManager类发送短信的方法,但就我而言,我找不到如何发起呼叫。它只能通过意图吗?

1 个答案:

答案 0 :(得分:2)

您只能通过两种方式发起呼叫,使用Intent.ActionDialIntent.ActionCall。 为什么Intent的方式不好?

var callIntent = new Intent(Intent.ActionCall);
callIntent.SetData(Android.Net.Uri.Parse("tel:+56889554540154"));
StartActivity(callIntent);