windows-phone

Windows Phone 8.1 Device (Lumia 930) and VS2013 debugging works only with disabled WiFi

时光怂恿深爱的人放手 提交于 2019-12-08 15:00:19
问题 There were errors in VS2013 when a Windows Phone 8.1 App is launching for deploy and debug: Error 1 Error : DEP6100 : The following unexpected error occurred during boostrapping stage 'Connecting to the device': SmartDeviceException - Deployment failed because no Windows Phone was detected. Make sure a phone is connected and powered on. AppWP Error 2 Error : DEP6200 : Boostrapping 'Device' failed. Device cannot be found. Deployment failed because no Windows Phone was detected. Make sure a

Animate LongListSelectorItem Foreground on Hold in Windows Phone

痞子三分冷 提交于 2019-12-08 13:34:32
问题 I've been working my head a lot in the few past days on trying to acquire a nice foreground animation effect for the case of holding an item. The Item template looks like this : <DataTemplate> <StackPanel toolkit:TiltEffect.IsTiltEnabled="True" Hold="OnLongListSelectorItemHold"> <toolkit:ContextMenuService.ContextMenu> <toolkit:ContextMenu> <toolkit:MenuItem Header="edit" /> <toolkit:MenuItem Header="delete" /> </toolkit:ContextMenu> </toolkit:ContextMenuService.ContextMenu> <TextBlock x:Name

c# read a list of anonymous type occurs an error with a foreach

与世无争的帅哥 提交于 2019-12-08 12:50:16
问题 I need to get data from this list, however when I put my foreach of a runtime error saying that the list contains null objects. But if I remove the foreach and put a breakpoint on the line where listbox.itemsSource receives the list, I see that I have the list loaded with all items correctly. var imgs = e.Document.DocumentNode.SelectNodes(@"//img[@src]") .Select(img => new { Link = img.Attributes["src"].Value, Title = img.Attributes["alt"].Value, }).ToList(); listBoxPopular.ItemsSource = imgs

How to play streaming background audio in Windows Phone 7.5

十年热恋 提交于 2019-12-08 12:18:27
问题 I've seen a tutorial about how to play local files using a background agent in WP7 Mango but it specifically states that the tutorial is related to local files: http://msdn.microsoft.com/en-us/library/hh202978(v=VS.92).aspx Does a similar tutorial exist for streaming files from the web? 回答1: I've used the same tutorial, and it works fine if you want to play something like a podcast that is stored as an mp3 file on a webserver. You just set an absolute Uri in the audiotrack. I don't think you

Image Caching from http sources

◇◆丶佛笑我妖孽 提交于 2019-12-08 12:13:36
问题 I've read in a post from December 1st 2012 at Slodge bloch that File and DownloadCache plugins could be used for downloading and caching images from http sources. I think that's what I need in the app I'm trying to develop with MvvmCross (great framework, congratulations!!). My app, first connects to a remote server to download some basic configs. One of these configs points to an url to get the app icon. To save bandwith, I'd like app caches the icon the first time it gets it until the url

UWP custom toast notification sound doesn't play on mobile

醉酒当歌 提交于 2019-12-08 11:35:09
问题 So I have an xml as notification body witch includes audio element with source (src) attribute pointing to preset windows sound and it doesn't play the sound I want and instead plays the default system sound. My notification xml looks like this (I use this as a test message to send trough Azure notification hubs debug option) <?xml version="1.0" encoding="utf-8"?> <toast> <visual> <binding template="ToastText01"> <text id="1">Test message</text> </binding> </visual> <audio src="ms

Serial number of phone (device)

这一生的挚爱 提交于 2019-12-08 11:16:55
问题 Is it possible to get unique number of phone (not SIM, phone number, but device number!) ?? Something like device serial number, producent code, IMEI etc? I work with Windows Phone 7.1 回答1: object uniqueId; var hexString = string.Empty; if (DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out uniqueId)) hexString = BitConverter.ToString((byte[])uniqueId).Replace("-", string.Empty); Dont forget to specify ID_CAP_IDENTITY_DEVICE capability in the app manifest. 回答2: you may use TAPI to

Taglib-sharp: how to use the IFileAbstraction to allow reading metadata from stream?

我怕爱的太早我们不能终老 提交于 2019-12-08 09:54:24
问题 I'm trying to read the metadata of a mp3 file stored in IsolatedStorage using TagLib. I know TagLib normally only take a file path as input but as WP uses a sandbox environment I need to use a stream. Following this tutorial (http://www.geekchamp.com/articles/reading-and-writing-metadata-tags-with-taglib) I created a iFileAbstraction interface: public class SimpleFile { public SimpleFile(string Name, Stream Stream) { this.Name = Name; this.Stream = Stream; } public string Name { get; set; }

Windows Phone “ListBox” ItemsSource

不羁的心 提交于 2019-12-08 09:30:50
问题 I have a list and want to assign the downloaded feeds her. Also wanted to say that I am using the same code I've used in another app, but is giving an error as few as this. The other works perfectly. I will post few as the source of this. For if you can not stay too long. private void carregaListas() { WebClient webClient = new WebClient(); webClient.DownloadStringCompleted += new DownloadStringCompletedEventHandler(webClient_DownloadStringCompleted); webClient.DownloadStringAsync(new System

Detecting scrolling to the end of listbox

孤者浪人 提交于 2019-12-08 08:32:59
问题 I have a large list of items, so i should request corresponding page from the server. How to catch an event, when user scrolls to the end of the listbox, so i can request another page? 回答1: The exact solutions you are looking for: http://danielvaughan.orpius.com/post/Scroll-Based-Data-Loading-in-Windows-Phone-7.aspx 回答2: You're thinking about data virtualization. Shawn Oster wrote a really good explanation to this here. To sum it up, it's not the ListBox that is managing your data, but your