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.
The 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, ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.