Metro Nuggets
Bitesized tidbits for building Modern (Metro) apps.
Tag Archives: Developer
Small Primary Live Tiles Not Updating in Windows Phone 8
November 8, 2012
Posted by on In an update to one of my Windows Phone apps, I decided to leverage the new size tiles that we have been afforded in WP8. However, I ran into a problem whereby the tile data I wanted to be displayed wasn’t showing on the primary tile, but was on the secondary; the primary tile showing just a small version of the app icon:
Secondary tile on the left, primary on the right. I knew the data to be displayed was being created, because if I changed the size of the tile, it was showing the correct image. So how to sort it?
Binding To Anonymous Types
May 25, 2012
Posted by on I was working on an app recently where an xml datasource was pulled in and I decided to use linq to parse the data to an anonymous types. The plan was to then bind that data to the listbox in my UI. The data got parsed correctly and I could see my anonymous type, but my UI was simply not being updated. So what was wrong?
Tango (7.1.1): Detecting Devices With 256MB
March 28, 2012
Posted by on Windows Phone update codenamed Tango is coming soon and with it comes devices that have a lower amount of memory in them than the usual 512mb, specifically 256mb. Your app needs to take into account whether it should be able to run on phones with 256mb of RAM and is discussed pretty well on MSDN at http://msdn.microsoft.com/en-us/library/hh855081(VS.92).aspx. So is there a quick way in your app of seeing whether the device your app is running on is 256 or 512mb? Yes, and is touched on in that MSDN link, I decided to just extend the code they give to give a quick and easy property that you can have in your app/viewmodel.
PRO TIP: Creating A Private Beta? Add Yourself To It!
March 12, 2012
Posted by on The AppHub and Marketplace support private betas which as a developer is great, you get to give it to real people who might not necessarily have a developer unlocked (or ChevronWP7 unlocked) device. This is done by you submitting an app to the AppHub in the same way as you would with a normal app, but with one difference, in the first page, you change this option:
Once this goes through, you can then give your beta testers a zune link and they can access the app through their phone’s MarketPlace hub. Part of the process of submitting a beta app is providing a list of Windows Live IDs, and these WLIDs are the only ones that have access to the beta.
The acceptance on beta apps is a lot quicker than a normal app as there aren’t as many checks done so you should receive a confirmation within a few hours to say it’s approved and will give you your zune link. Now, here’s the problem: there’s no way of knowing exactly how long it will then take from approval to visibility, especially with how slow the marketplace is at the moment for displaying new apps. There’s no real way of seeing when your app is available in the marketplace to your testers. Or is there?
Find Your Paid vs Trial Download Figures
March 6, 2012
Posted by on So you’ve published your paid for app, you included a trial to hook some people in, great. You look at your download figures in your app list on AppHub and the figures are looking good, great! Roll on that fat royalties cheque from Microsoft. But wait a minute, you included a trial, so could these figures just all be trial downloads? They could be, but it’s not quick to find out, so let me show you.