How to open pdf file in Windows Phone 8?

You have to use the LaunchFileAsync method of Launcher class. Example: // Access the file. StorageFile pdfFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync(“file.pdf”); // Launch the pdf file. Windows.System.Launcher.LaunchFileAsync(pdfFile); You will find more info here: Auto-launching apps using file and URI associations for Windows Phone 8

Upload image using HttpClient

Okay after hours of researching I came to the point that I should restart from draft. I simulate a Html form upload with following C# code: private async Task<string> UploadImage(StorageFile file) { HttpClient client = new HttpClient(); client.BaseAddress = new Uri(“http://your.url.com/”); MultipartFormDataContent form = new MultipartFormDataContent(); HttpContent content = new StringContent(“fileToUpload”); form.Add(content, “fileToUpload”); var stream … Read more

Windows Phone 8: Media file access

KnownFolders doesn’t work on WP8 for 3rd party apps. In terms of access on WP8 here’s what’s available: Contacts: Read access available since WP7.5, write-access available via WP8 ContactStore. Appointments: Read-access available since WP7.5. In WP8 you can add individual appointments after user confirmation via the SaveAppointmentTask. Photos: Read access to all folders available since … Read more

IP address in windows phone 8

Yes this is now possible in WP8 without using the multicast solution required for WP7. Note that you will have multiple network interfaces on your phone (e.g. three on my WP8 Emulator) public static IPAddress Find() { List<string> ipAddresses = new List<string>(); var hostnames = NetworkInformation.GetHostNames(); foreach (var hn in hostnames) { if (hn.IPInformation != … Read more

Windows Phone 8 emulator error – Something happened while creating a switch

It’s already answered, but something easier worked for me (and without uninstalling VirtualBox): “Go into Hyper V. Go into the Virtual Switch Manager. Create a virtual switch called ‘Windows Phone Emulator Internal Switch’. Make it’s connection type Internal. Now launch the emulator. It should work.” I had to reboot the machine before running the emulator, … Read more

Install Visual Studio 2013 on Windows 7

The minimum requirements are based on the Express edition you’re attempting to install: Express for Web (Web sites and HTML5 applications) – Windows 7 SP1 (With IE 10) Express for Windows (Windows 8 Apps) – Windows 8.1 Express for Windows Desktop (Windows Programs) – Windows 7 SP1 (With IE 10) Express for Windows Phone (Windows … Read more