2017-05-10 26 views
-2

我需要在ios,android和windows手机平台上使用Zebble像下面的截图一样启动手机拨号程序。如何使用Zebble为Xamarin打电话?

Dial pad

我写了一些代码来运行拨号盘,但在Zebble,我无法访问活动启动。

public async Task DialNumber() 
{ 
    if(Device.Platform == DevicePlatform.Android) 
    { 
     var intent = new Intent(Intent.ActionDial,Android.Net.Uri.Parse("tel:111111")); 
     StartActivity(intent); 
    } 
} 

回答