Is it possible to access your phone call facility from your Windows Phone 7/8 app? To wit. If I have a string that has a phone number, then I would like to send the user a number directly on the "phone" app.
If your string is a phone number, then you can just use the code given below if you The string has a phone number that you have to first remove.
I use a regex for this. You can use your code below, but you have to change something depending on the format of your string: public stable string GetFirstPhoneNumber (string not included) {MatchCollection ms = Regex.Matches ( Includenumber, @ "([0-9] [^ AZ ^ az] +) ([a-zA-z] | $)"); Reggae DigitsOnly = New Reggae (@ "[^ \ d]"); (Int i = 0; i & lt; ms.Count; i ++) for {string rays = points only Replace (MS [i]. Value, ""); If (res.Length> 5) returns ridge; } Return ""; } You can read more about this here: Actual phone call here:
Microsoft.Phone.Tasks.PhoneCallTask T = new Microsoft.Phone.Tasks.PhoneCallTask (); T. Phone number = number; T.DisplayName = displayname; T.Show ();
No comments:
Post a Comment