0

I've been trying to make a program which will call a hard coded contact in WP7. Im using this code for the call function

    PhoneCallTask phoneCallTask = new PhoneCallTask();
                                    phoneCallTask.PhoneNumber = "123456789";
                                    phoneCallTask.DisplayName = "person 1";
                                    phoneCallTask.Show();

and there is this pop up menu like this!(this one is from google images)

I would want to know if there is a way in which I can call that contact without manually pressing the call button or pressing any key.

Cœur
  • 37,241
  • 25
  • 195
  • 267
jim5421
  • 9
  • 2

1 Answers1

0

There is no way to do it and there is no way to automate the tap on the Call button. This feature is by-design and is there for security purposes, to protect the user from rogue applications that might trigger expensive calls (e.g. international or to paid services).

Den
  • 16,686
  • 4
  • 47
  • 87