Access denied when getting namespace binding time

1

I'm developing an application for Windows Phone and I'm using a namespace connection. The problem is that this namespace says that it does not have access to the resource, and that the declaration was made in the aplicação manifest.
And it's not the namespace Windows.Phone.Task , because this does not solve my problem, since I want to get the connection time. This namespace that I am using says that my access is denied.

    
asked by anonymous 04.05.2015 / 21:45

1 answer

1

Are you developing for Windows Phone 8.1? If so, you can use the Windows.ApplicationModel.Calls namespace ( MSDN Ref ).

Example:

Windows.ApplicationModel.Calls.PhoneCallManager.ShowPhoneCallUI("Telefone", "Nome Usuario");

If you are developing for Windows Phone 8, use PhoneCallTask ( MSDN Ref ):

    PhoneCallTask phoneCallTask = new PhoneCallTask();
    phoneCallTask.PhoneNumber = "Telefone";
    phoneCallTask.DisplayName = "Nome Usuario";
    phoneCallTask.Show();
    
11.05.2015 / 21:39