Access denied when obtaining namespace connection time

Asked

Viewed 80 times

1

I am developing an application for the Windows Phone and I’m wearing a namespace who makes the connection. The problem is that this namespace says that it has no access to the appeal, and that the declaration of the appeal was made in the manifest of aplicação.
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’m using says my access is denied.

  • The namedspace I’m using is using Windows.Phone.Notification.Management; And the method is as follows: Accessorymanager.Makephonecall(); .

1 answer

1

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

Example:

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

If you’re developing for Windows Phone 8, use Phonecalltask (MSDN Ref):

    PhoneCallTask phoneCallTask = new PhoneCallTask();
    phoneCallTask.PhoneNumber = "Telefone";
    phoneCallTask.DisplayName = "Nome Usuario";
    phoneCallTask.Show();
  • Yes, but this method I can’t get the connection time, you see... For example on android I can make a call and get the duration of the call... For what I am doing is very important.... Like you have to take it by the time you initiated and tals, but it is very gambiarra for something so simple, I wanted it to be something more direct because in this namedspace that I passed has what I want but I can not use, I do not know why...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.