Metro Nuggets

Bitesized tidbits for building Modern (Metro) apps.

The Mystery of the Disappearing Images in the Emulator

While I was working on In Two (a great game by the way, you should check it out), I was working on one feature that allowed the user to set their profile picture, which involved letting them either choose a photo from one of their many, many albums, or taking a new picture. Most of the development of that game was done using the emulator, which was no problem, I thought, as I knew the emulator came with stock images for you to use. But every time I went to choose an image from my app, all I had was the empty camera roll folder, no stock images.

The Solution

My initial solution for this was to build a quick, simple app that would save an image to the image gallery so my app could use it, all the while, still cursing that there were no stock images in the WP8 emulator. And this worked well. Now, I could give you the project so you have images, or I could tell you the weird discovery I made.

The images are there. But weirdly, you have to go into the Photos hub first in order for them to then become available for your app to choose from. It’s as simple, and stupid, as that! Just go into it, then come straight back out and you’ll get them showing in the emulator.

Hopefully this will stop others trying to work out how to use images in their app using the emulator.


2 responses to “The Mystery of the Disappearing Images in the Emulator

  1. Pingback: Windows Store Developer Links – 2013-07-11 | Dan Rigby

  2. Pingback: Adding photos to the Windows 10 Phone Emulators | Metro Nuggets

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: