I wrote a small code example to Nokia Developer Wiki, which shows how to work with Live Tiles in Windows Phone 7. It shows how to create application primary and secondary tiles and how to update tiles data from Scheduled Task Agent and with Push Notification from server side with PHP.
Read the whole story, see video demo about how the application works and get the source codes here.
