Questions tagged [windows-phone]

GENERAL WINDOWS PHONE SUPPORT IS OFF-TOPIC. Windows Phone is Microsoft's mobile operating system and software development platform. Use this tag for programming questions that specifically relate to programming or debugging on a Windows Phone. Windows Phone questions that are not programming-related can be asked on https://windowsphone.stackexchange.com/

Windows Phone is a mobile operating system developed by Microsoft, and is the successor to its Windows Mobile platform.

Development Platforms

External Resources

Windows Phone guide for Android developers

Free Windows Phone Programming Book

More information

6786 questions
114
votes
1 answer

Reactive Extensions bug on Windows Phone

Compiled with VS 2012, with project type WP 8.0 the following code will fail if debugger is not attached. Somehow, if debugger not attached, compiler optimizations ruins the code inside Crash() - see comments in code. Tested on Lumia 1520 (8.1) and…
Yuriy Naydenov
  • 1,875
  • 1
  • 13
  • 31
105
votes
3 answers

How to post data using HttpClient?

I have got this HttpClient from Nuget. When I want to get data I do it this way: var response = await httpClient.GetAsync(url); var data = await response.Content.ReadAsStringAsync(); But the problem is that I don't know how to post data? I have to…
87
votes
1 answer

Async POST fails on WP7 and F#

When I do let! read = from.AsyncRead buf in F#, it blocks and doesn't return until the TCP socket is dead. Why? And how do I fix it? Its code: module StreamUtil open System.IO /// copy from 'from' stream to 'toStream' let (|>>) (from : Stream)…
Henrik
  • 9,714
  • 5
  • 53
  • 87
82
votes
1 answer

(Dis)Connecting bluetooth devices with Windows.Devices.Bluetooth.Rfcomm (WP8.1)

Connecting and disconnecting to Bluetooth devices has been giving various results on Windows Phone/Desktop 8.1. I have been using the Windows.Devices.Bluetooth.Rfcomm namespace and I have tried to connect several devices with different Bluetooth…
ggg
  • 961
  • 6
  • 8
72
votes
2 answers

What are the fees to develop on iOS, Android and WP?

I know this is not the perfect place to ask this question, but it is so hard to find a good answer and I prefer to ask experienced professionals. What are the fees we must pay to publish an application on: Windows Store (for WP and W8) Google…
Bastien Vandamme
  • 17,659
  • 30
  • 118
  • 200
71
votes
4 answers

WPF TextBlock Underline

I have a textblock of width say 500, but my string is just say "H" but I want to underline the whole textblock width not just under H what can I do?
user679530
  • 897
  • 1
  • 8
  • 11
47
votes
1 answer

Visual studio the project needs to be deployed before it can be started

When starting to test the application on Windows Phone (even a blank app) on emulator or device, this error is poping out "The project needs to be deployed before it can be started". "verify the project is selected to be deployed in the solution…
44
votes
3 answers

Unsupported Media Type error when posting to Web API

Making a windows phone application and although I may easily pull from my Web Api I am having trouble posting to it. Whenever posting to the api I get the "Unsupported Media Type" error message and I'm not sure as to why it is happening considering…
Billson
  • 443
  • 1
  • 4
  • 4
42
votes
2 answers

Run "async" method on a background thread

I'm trying to run an "async" method from an ordinary method: public string Prop { get { return _prop; } set { _prop = value; RaisePropertyChanged(); } } private async Task GetSomething() { return await…
McGarnagle
  • 101,349
  • 31
  • 229
  • 260
40
votes
2 answers

How to pass values (parameters) between XAML pages?

Similar questions have been asked before but this question strives to explore more options and the ability to pass complex objects. The question is how to pass parameters but it really needs to be broken up into three parts.. When navigating…
Daniel Little
  • 16,975
  • 12
  • 69
  • 93
38
votes
1 answer

On Windows Phone's IE Touchstart Event Ends Automatically After Few Seconds

I have a very specific problem. I'm writing a web-page for mobile phones which has a button on it. I'm detecting touchevent on every browser including IE, but on IE it's quite specific. After a few seconds it automatically ends. Can you somehow help…
33
votes
3 answers

WebUtility.HtmlDecode vs HttpUtilty.HtmlDecode

I was using WebUtilty.HtmlDecode to decode HTML. It turns out that it doesn't decode properly, for example, – is supposed to decode to a "–" character, but WebUtilty.HtmlDecode does not decode it. HttpUtilty.HtmlDecode, however,…
carbin
  • 2,907
  • 2
  • 28
  • 36
29
votes
5 answers

Deploying to Windows Phone 10 fails on Visual Studio

So many things happened that I don't know where to start. Seriously, shouldn't this be simpler? Edit: Someone here knows how can I contact Microsoft to tell this? Or even, can someone tell them about this problem? I have the last Windows 10 desktop…
28
votes
2 answers

Device Unique id in Windows Phone 8.1

How to get the device unique id in Windows Phone 8.1? The old way of using DeviceExtendedProperties.GetValue("DeviceUniqueId") does not work for Windows Universal app.
MohanRajNK
  • 895
  • 2
  • 13
  • 26
28
votes
5 answers

await httpClient.SendAsync(httpContent) is non responsive

await httpClient.SendAsync(httpContent) is not responding though I found no error in code/url its still getting hang. Please suggest/help. My code as follows: public async Task Get_API_Result_String(string url, List
Priti
  • 336
  • 1
  • 3
  • 15
1
2 3
99 100