Windows 8 app blog talks more about Metro live tiles

A couple of days ago, Microsoft updated its Windows 8 app developer blog with a the first part of a two part article that offered some hints to Metro app makers on how to create and update their app's live tiles. Today, the app developer blog posted up the second part of the live tiles article as Microsoft's Kevin Michael Woley gives even more advice to Metro app makers on how to design their app's live tiles.

The highly technical blog post once again gives a number of code examples that programmers can use for creating the live tiles for their Metro apps. Woley uses the food truck Metro app again to explain his points. Woley states that there are a total of four ways a Metro app can offer updates on its live tile. He states:

Apps can use local notifications to update their tile, which is useful if info changes while the app is running. Apps can schedule tile and toast updates to happen at precise times. Also, apps can use push or polling tile notifications to update their tiles from the cloud while they are not running. Polling is great for low-frequency broadcast content. Push is great for sending toast notifications, which need to arrive immediately, or tile updates that are targeted to individual users. In this post, I focus on polling updates and local updates.

For the Metro food truck app, which keeps track of all the food trucks in a given city, Woley says it's best for the app to use periodic notifications to update the live title. He adds it should only take a few lines of code for this feature to be put in a Windows 8 Metro app. Because a food truck can actually move its location during the day, the app can be coded, via either JavaScript or C#, to send out an update on the trucks' position every hour.

Sometimes a user may want to find a very specific food truck. In that case, the app creators can program the app so that a user can pin a specific food truck's location on the screen. This is called using secondary tiles and once that is set up for, say, the Nom Nom Barbecue Truck (sounds good, doesn't it?), the users can simply view the tile to find the location of that one truck. Again, Woley offers some example code in the blog for putting in secondary tile support for a Metro app.

Image via Microsoft

Report a problem with article
Next Article

Amazon leaks God of War sequel

Previous Article

NVIDIA says, "It's coming" on Facebook page

9 Comments - Add comment