windows-phone-8

Windows Phone 8: Reading XML from Web

你离开我真会死。 提交于 2019-12-23 03:47:04
问题 As part of a project i am working on i am trying to load this XML page (http://weather.yahooapis.com/forecastrss?w=2459115) into my Windows Phone 8 application and save the a number of the values as variables. I am using Visual Studio 2012 professional and VB.net. So far i have searched and tried a number of ways just trying to save one variable to start with but i am unable to get it to read. this is what i have so far Partial Public Class MainPage Inherits PhoneApplicationPage Private

Windows Phone 8: Reading XML from Web

淺唱寂寞╮ 提交于 2019-12-23 03:46:17
问题 As part of a project i am working on i am trying to load this XML page (http://weather.yahooapis.com/forecastrss?w=2459115) into my Windows Phone 8 application and save the a number of the values as variables. I am using Visual Studio 2012 professional and VB.net. So far i have searched and tried a number of ways just trying to save one variable to start with but i am unable to get it to read. this is what i have so far Partial Public Class MainPage Inherits PhoneApplicationPage Private

Windows Phone 8 - HowTo display current position on the map

那年仲夏 提交于 2019-12-23 02:48:15
问题 As the title suggest I am struggeling with the display of the current location of the user on the map. Afaik there a two ways to display the current user location: In Code: create a ellipse, set it as content of a MapOverlay , set the GeoCoordinate of the MapOverlay, add this overlay to a MapLayer and add this to the map - but I cannot access the MapOverlay anymore and thus I cannot change (update) the position of the user. Is there a way to update the user position without having to redraw

How to get data from a LongListSelector item in WP8

偶尔善良 提交于 2019-12-23 02:48:04
问题 So I have a LongListSelector that will soon be bound to a list of object. What I want is when one of the LongListSelectorItems is tapped that I get the specific object tapped, and have the ability to pass that object to another screen so I can show full information about the object private void PeopleList_Tap_1(object sender, System.Windows.Input.GestureEventArgs e) { MessageBox.Show("SUCCESS"); } My Tap is working, I just don't know how to get the object that was selected, or how to pass it

Read Exif data from Image on WP

冷暖自知 提交于 2019-12-23 02:44:28
问题 How to read Exif data from Image. There is ExifLib but have problem with Lumia device and Data taken field. Are there any other way to read Exif data on Windows Phone (7./8). Best regards 回答1: I use the ExifLib from this article http://igrali.com/2011/11/01/reading-and-displaying-exif-photo-data-on-windows-phone/ without any problems on Lumia 800 and 710. Try it. If you want to get the location of the photo, make sure you have adding gps info to photos enabled in settings. 回答2: You should use

How to implement deep linking in Windows Phone 8

吃可爱长大的小学妹 提交于 2019-12-23 02:42:12
问题 I am trying to implement deep linking using myapp:// moniker. For testing purpose I have an HTML page with the following meta: <html><head> <meta property="al:windows_phone:app_id_here" content="12345" /> <meta property="al:windows_phone:url" content="myapp://products/?id=widget" /> <meta property="al:windows_phone:myapp" content="Example Store" /> <title></title> </head> <body> <h1>Test</h1> </body> </html> And in WMAppManifest, I have declared the protocol as: <Extensions> <Protocol Name=

async await execution windows phone 8

半城伤御伤魂 提交于 2019-12-23 02:28:35
问题 I am new to async and await style of programming. How can I solve the following problem: I am calling the below code first. The problem here is that the first line is awaiting which need to populate the categoriesvm.Categorieslist , which it does not, but the second line is called. (which I think is the default behaviour of await) How can I make sure that the second line is called only when the categoriesvm.Categorieslist is populated in the first line? protected override void OnNavigatedTo

SSDP Search in Windows Phone 8

被刻印的时光 ゝ 提交于 2019-12-23 02:16:43
问题 I'm new at SSDP/UPNP/Sockets and all that jazz. I'm playing around with it a bit and I just want to see what a generic SSDP search on my network will bring up. Using this SSDP Sniffer app, I get a lot of results so I'm attempting to recreate this. I'm using the following code, which I've found various versions of, but all the tweaking I do doesn't appear to bring back any results. I pretty much at a loss here and would appreciate any guidance. thanks! private const string SSDP_IP = "239.255

How to open documents and images using launcher in windows phone 8

不羁的心 提交于 2019-12-23 02:08:07
问题 I am creating windows phone 8 app, I have to open docs and images using code or launcher. The problem is that those documents are not opening those are not created in MS Office, I am getting error like: "Document has been damaged, cant open" and "File Format doesn't recognized" My code is here: string file = "Test.xls"; var filerun = await ApplicationData.Current.LocalFolder.CreateFileAsync(file); await Launcher.LaunchFileAsync(await ApplicationData.Current.LocalFolder.GetFileAsync(file));

How to open documents and images using launcher in windows phone 8

这一生的挚爱 提交于 2019-12-23 02:05:15
问题 I am creating windows phone 8 app, I have to open docs and images using code or launcher. The problem is that those documents are not opening those are not created in MS Office, I am getting error like: "Document has been damaged, cant open" and "File Format doesn't recognized" My code is here: string file = "Test.xls"; var filerun = await ApplicationData.Current.LocalFolder.CreateFileAsync(file); await Launcher.LaunchFileAsync(await ApplicationData.Current.LocalFolder.GetFileAsync(file));