Questions tagged [windows-phone-8]

Windows Phone 8 is a version of Windows Phone (Oct 29, 2012 - present) that succeeds Windows Phone 7.5 and includes many new features.

Windows Phone 8 ("WP8") is a mobile operating system developed by Microsoft, and is the successor to Windows Phone 7.5. Unlike Windows Phone 7 which was based on Windows CE, Windows Phone 8 uses the Windows NT kernel found in Windows 8.

Supported development platforms include C#/VB.Net with XAML, HTML, CSS and Javascript or Typescript and C++ with Direct3D. Although XNA applications can still be developed, they can only target Windows Phone 7.5 instead of Windows Phone 8 and are kept only for legacy purposes. Windows Phone 8 also supports building Windows Phone Runtime Components and has access to APIs also present in Windows 8, making development for both platforms simultaneously easier.

Download the development tools and SDK.

New features include C++ support, Direct3D, multiple resolutions, Micro SD card, NFC, Bluetooth, Multi-core processing, In-app purchase, text-to-speech, speech-to-text, voice commands, Wallet Hub, app2app communication, new background functionality, contacts and calendar write-access, lock screen integration, new tile templates, new camera APIs, built-in maps control, and much more.

Read about what's new in the Windows Phone 8 SDK.

More information

Learning resources

Rewards

18315 questions
222
votes
13 answers

Call asynchronous method in constructor?

Summary: I would like to call an asynchronous method in a constructor. Is this possible? Details: I have a method called getwritings() that parses JSON data. Everything works fine if I just call getwritings() in an async method and put await to left…
137
votes
6 answers

DateTime.ToString("MM/dd/yyyy HH:mm:ss.fff") resulted in something like "09/14/2013 07.20.31.371"

I have a WP8 app, which will send the current time to a web service. I get the datetime string by calling DateTime.ToString("MM/dd/yyyy HH:mm:ss.fff") For most users it works great and gives me the correct string like "09/10/2013 04:04:31.415".…
Eldorado
  • 1,433
  • 2
  • 10
  • 6
111
votes
2 answers

Controls on Pivot disappear

I have an app with a pivot control. The pivot control has two items (pages), both contain a grid. The grids contain a few buttons and one a map and the other a text block. When the app first runs the pivot works as expected. However, after the app…
Jamie Kitson
  • 3,714
  • 4
  • 28
  • 45
97
votes
14 answers

How to upload file to server with HTTP POST multipart/form-data?

I am developing Windows Phone 8 app. I want to upload SQLite database via PHP web service using HTTP POST request with MIME type multipart/form-data & a string data called "userid=SOME_ID". I don't want to use 3rd party libs like HttpClient,…
Farhan Ghumra
  • 14,534
  • 5
  • 43
  • 105
81
votes
5 answers

Install Visual Studio 2013 on Windows 7

I would like to install Visual Studio 2013 on Windows 7 64-bit. For some reason, the installer says "Setup Blocked" with an error "This version of Visual Studio requires a computer with a newer version of Windows". This error is not exactly…
Sussch
  • 1,077
  • 1
  • 9
  • 13
79
votes
2 answers

How to send a Post body in the HttpClient request in Windows Phone 8?

I have written the code below to send headers, post parameters. The problem is that I am using SendAsync since my request can be GET or POST. How can I add POST Body to this peice of code so that if there is any post body data it gets added in the…
Balraj Singh
  • 2,841
  • 3
  • 41
  • 77
73
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…
70
votes
3 answers

Calling async method on button click

I created Windows Phone 8.1 project and I am trying to run async method GetResponse(string url) on button click and waiting for the method to finish, but method is never finishing. Here is my code: private void Button_Click(object sender,…
Doniyor Niyozov
  • 1,026
  • 1
  • 8
  • 16
66
votes
2 answers

How to Install Windows Phone 8 SDK on Windows 7

I have all my workspace and everything set up on Windows 7 but I also want to develop Windows Phone 8 but as stated on Microsoft website that It can not be installed on Windows 7. Do anybody knows how to install in on Windows 7. I have found a crack…
AZ_
  • 35,659
  • 28
  • 152
  • 199
59
votes
12 answers

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

I have a similar problem like mentioned in this question: Unable to create the virtual machine But, my problem is a bit different in the error description: The Windows Phone Emulator wasn't able to create the virtual machine: Something happened…
Igor Ralic
  • 14,835
  • 4
  • 40
  • 50
55
votes
3 answers

UDP multicast group on Windows Phone 8

OK this is one I've been trying to figure out for a few days now. We have an application on Windows Phone 7 where phones join a multicast group and then send and receive messages to the group to talk to each other. Note - this is phone to phone…
Adam Stewart
  • 1,805
  • 1
  • 18
  • 25
51
votes
6 answers

How to get an specific header value from the HttpResponseMessage

I'm making an HTTP call. My response contains a session code X-BB-SESSION in the header section of the HttpResponseMessage object. How do I get that specific header value? I am using a foreach statement to iterate through all the headers (MSDN…
MikePR
  • 2,104
  • 4
  • 22
  • 52
50
votes
2 answers

How to interpret this stack trace

I recently released a Windows phone 8 app. The app sometimes seem to crash randomly but the problem is it crash without breaking and the only info I get is a message on output that tells me there were an Access violation without giving any…
Fabio Marcolini
  • 2,127
  • 1
  • 19
  • 27
47
votes
9 answers

Get Unique Device ID (UDID) under Windows Phone 8

Is there any unique device ID (UDID) or any similar ID I can read out on Windows Phone 8 (WP8) that doesn't change with hardware changes, app-reinstallation etc.? In older Windows Phone versions there were such IDs: WP7: Device Status for Windows…
flexo
  • 1,099
  • 1
  • 9
  • 14
46
votes
2 answers

What is [NotifyPropertyChangedInvocator] in C# when implements INotifyPropertyChanged?

I see two types of implementation of INotifyPropertyChanged The first one: public abstract class ViewModelBase : INotifyPropertyChanged { public event PropertyChangedEventHandler PropertyChanged; protected virtual void…
Waqas Idrees
  • 1,362
  • 2
  • 14
  • 35
1
2 3
99 100