Saving a Contact’s Phone Number with the SavePhoneNumberTask
The save phone number task is used to launch the built-in Contacts app, allowing the user to save a specified phone number. This chooser does not return data, but you can handle the
Completed event to determine whether the task was completed correctly.
SavePhoneNumberTask contains a single
PhoneNumber property, which is passed to the Contacts application when the task’s
Show method is called.
SavePhoneNumberTask should be defined as a field in your class, like so:
readonly SavePhoneNumberTask savePhoneNumberTask = new SavePhoneNumberTask();
Subscribe to the
SavePhoneNumberTask.Completed event within your class constructor, ...