I just added a simple in-app purchase in my latest app to allow for the user to remove the advertisement. Before releasing the app I wanted to try the in-app purchase function to see if everything worked out as it should. To just try the function you simply have to change your
and run your purchase function. Simple enough.
But this testing function has a limitation in that it resets every time you start the app. I wanted to see how it looked after purchasing and then restarting the app (to make sure the ads were removed on start-up if the purchase had been made).
It turned out it could be done by finding a file on your computer that should be in the following path:
where YOURUSERNAME is, well, your user name and YOURAPPGUID is the identifier for your app (find this in your package.appmanifest file in the packaging section). The file is called WindowsStoreProxy.xml and looks like this:
Right, so I thought it would be great to write a HTML5 app in windows 8 since it’s supported and everything. The one thing I refuse to skip though is jQuery. So, I added jQuery 1.9.1 to my app, referenced it in my html-file and ran the app. The following popup showed up:
I searched the web and I found that the only solution that seems safe at the time of writing is to use a “fixed” version for Windows 8, supplied by a company called AppendTo. The files can be downloaded here: https://github.com/appendto/jquery-win8
Currently the latest jQuery release is 1.9.1 and the AppendTo conversion is 1.8.2 but it’s close enough and it works for me.
According to a couple of videos floating around and some articles on the subject the jQuery 2.0 release will have full support for Windows 8 so that should be great. But until then the AppendTo solution seems to be the best one out there.
As I am almost done with my first Windows 8 App, Himmelsblå Dagar (a Swedish app), I was trying out the Windows App Cert Kit Tool used to validate your application before sending it into Microsoft. It was a good tool as it found two errors I had. One was that I was still building in Debug mode (doh!) and the other was the following:
Image reference “Assets\BadgeLogo.png”: The image “C:\Program Files\WindowsApps\XXX_184.108.40.206_neutral__123456789\Assets\BadgeLogo.png” has an ABGR value “0xFFDDEEFF” at position (0, 0) that is not valid. The pixel must be white (##FFFFFF) or transparent (00######).
I couldn’t figure out what the problem was as I wasn’t using transparency in my badge logo, just a really scaled down version of my normal logo icon. That was the problem. The badge logo can only use white (#FFFFFF) and transparency so I created a new logo using only the color white and it worked.
As I am making my first Windows 8 application I want to add a live tile. The application is a fixture list for my football team, Malmö FF, and I want it to have a live tile that always shows the next game.
I have all the games listed on a site that I’ve written in PHP which the full application uses to get the fixture list so I thought it would be neat if it could also generate the live tile.
Notice that you can add both a large and a small tile. This is useful it seems that there will be support for even more sizes in the coming future according to Microsoft.
To use this from your application do the following in your C# code. You only have to do this once during the installation process of your application:
public class TileManager
private const string Url = "http://mysite.com/services/Tile.php";
public static void CreateUrlUpdater()
var recurrence = Windows.UI.Notifications.PeriodicUpdateRecurrence.HalfHour;
var url = new Uri(Url);
I’ve installed Windows 8 and I had a couple of reasons for it:
I was running Windows Vista (need more reasons?)
It was cheap (special price, just for you and everyone else!)
I was interested in developing apps in C#
After installing Windows 8 I started hating it immediately as I was installing it before heading to bed and I couldn’t find the Shut down button. Also, it ran really slow on my old computer even though it passed Microsoft´s checklist just fine.
I finally found the shut down button soon enough and the next day I found some better drivers so the computer ran more smoothly. So, now I was gonna take a look around and I found the best thing since Microsoft killed of Clippy; the new Task Manager:
It’s a whole lot better then in previous versions of Windows and it gives you much more information about the current status of your computer and what’s running. It separates the information between desktop software and apps and it even has a “Simple View” if you just want to see what’s running: