Windows Phone Communication with Other Apps - Task Examples
50 likes | 152 Views
Learn how to communicate with other apps on Windows Phone using tasks. See examples of using WebBrowserTask, MediaPlayerLauncher, and EmailComposeTask with code snippets.
Windows Phone Communication with Other Apps - Task Examples
E N D
Presentation Transcript
Programering af mobile enhederWindows Phone Uge 13 Task (Kommunikation med andre APP’s)
Brug af web browser taskeksempel using Microsoft.Phone.Tasks; . . . .. . . . . . . . . WebBrowserTask browser = new WebBrowserTask(); browser.Uri = new Uri("http://webdemo.bjoerks.net/SimpleEksempler/doc3.htm"); browser.Show();
Brug af mediaplayer taskeksempel using Microsoft.Phone.Tasks; . . . .. . . . . . . . . Microsoft.Phone.Tasks.MediaPlayerLauncher task = new Microsoft.Phone.Tasks.MediaPlayerLauncher(); task.Media = new Uri("http://webtv.eal.dk/1482495/1769534/2144052da569594b5907c6b592ba915d/video_medium/podcast/udsendelse-3-at-lre-af-video.mp4"); task.Show();
Brug af email taskeksempel using Microsoft.Phone.Tasks; . . . .. . . . . . . . . EmailComposeTask emailTask = new EmailComposeTask(); emailTask.Subject = "Dette er en test"; emailTask.Body = "Jeg tester lige"; emailTask.To = "bjbu@tietgen.dk"; emailTask.Show();
Links • Microsoft.Phone.Tasks Namespacehttp://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.tasks