Updated Windows Blog Reader Sample with Background Task

I had earlier posted the Blog Reader Sample with Search Implementation.  The Blog Reader is an excellent place to start to build XAML Windows 8 Apps. I had customized it to include Search and a few other things.

As much as we would love to open the Blog Reader and have it running all the time to check new feeds, it would be nice if we can get those as a part of the Live Tiles.  Live Tiles in Windows 8 allows people to get a peek of what’s happening new and thereafter pre-empts the users to click the Live Tile and get into the application to read the rest of the stuff.


Above is my Start screen in which you can see there are Live Tiles for most of the apps including Travel App which has an exciting location picture which induces me to click and find more about the place.

Now, for our Blog Reader sample, we can implement Live Tile such that it keeps checking for new feeds and presents it within our Tile.  Once I find something interesting, I can click and launch the Blog Reader to read about the same.

This obviously involves a service running in the background and keep poling the feeds.  That would make it an ideal candidate for background task.  Background Tasks in Windows 8 allows a process to run in the background while the app may/may not be active.  They are very handy in a variety of scenarios, particularly for the fact that Apps in Windows 8 gets pushed to suspended state in 2 seconds and there is really no way to keep them running infinitely and keep checking for new stuff.

In our case, I have added a Background Task Project and a class which implements the Run method to keep checking for the feeds.  This is based on the Background Task Sample QuickStart

The actual implementation is 3 methods in the Background Task and a method in the ItemsPage.xaml in the main project.

In principle with DRY (Do not Repeat), I am going to again point to the link here

The only change I have made is to make the feed check the ASP.NET Main Page RSS Feed.

You can download the completed project from here

Cheers !!!

Print | posted on Monday, April 1, 2013 8:44 AM

Comments on this post

# re: Updated Windows Blog Reader Sample with Background Task

Requesting Gravatar...
when trying to deploy, i am getting the error
'Error 1 Error : DEP1560 : Failed to read manifest file "E:\Projects\WindowsBlogReader\WindowsBlogReader\bin\Debug\AppxManifest.xml". It may need to be regenerated.'
Left by Dann on Apr 19, 2013 4:55 PM

# http://www.arabie3lan.com

Requesting Gravatar...
Its nice as u explained but in mine blog such codes are not found..
so How do I do it.. plz check mine once suggest me to change in
http://www.arabie3lan.com الشيخ الروحاني
which part so that i can obtain as you explained here.

Left by الشيخ الروحاني on Jul 01, 2013 10:07 PM

# re: Updated Windows Blog Reader Sample with Background Task

Requesting Gravatar...
Now it will be easy to use windows.Because past version was very difficult to understand.Thanks for this update!!
Webs: Texas Auto Transport
Left by movemein on Jun 19, 2015 12:20 PM

# re: Updated Windows Blog Reader Sample with Background Task

Requesting Gravatar...
I can easily accept this background.Its looking great!!Thanks a lot.
Company C hair Salons
Webs: C haircut Jupiter fl
Left by chairsns on Jun 26, 2015 11:06 AM

# re: Updated Windows Blog Reader Sample with Background Task

Requesting Gravatar...
Here is the wedsite for boom beach generator for upgradation and unlimited resources.
Left by bbgems on Mar 13, 2016 10:55 PM

# Games - Free Online Games at Addicting Games

Requesting Gravatar...
Great post full of useful tips! My site is fairly new and I am also having a hard time getting my readers to leave comments. Analytics shows they are coming to the site but I have a feeling “nobody wants to be first” Fifa 16 Hack
Left by Jon Hogue on Apr 25, 2016 1:32 PM

# re: Updated Windows Blog Reader Sample with Background Task

Requesting Gravatar...
Our written essays are very cheap and buy narrative essay affordable by every student.
Left by Lauren Henry on Jul 20, 2016 3:44 PM

# MSP Starcoins

Requesting Gravatar...
Nic Blog Post ......
Thanks For sharing your ideas with us .....
Keep it up.....
Left by Martim Barros Almeida on Sep 12, 2016 11:06 AM

# MSP Starcoins

Requesting Gravatar...
Nic Blog Post....
Thanks for sharing your ideas with us ....
Keep it up.........
moviestar planet hack
Left by Alex Barbosa Araujo on Sep 12, 2016 11:14 AM

# Facebook customer support number

Requesting Gravatar...
Facebook is very interesting and knowledgeable site we can do so many things on our facebook account like photo share, sending a friend request

Facebook customer support number
Left by eanglina on Jan 06, 2017 4:09 PM


Requesting Gravatar...

[url=http://www.loukado.com/blogs/post/21644#sthash.tGMPyecv.NCt20sCp.dpbs]DETECT YAHOO MAIL SERVER [/url]
Left by Lewis smith on Jan 08, 2017 4:53 PM

# Caresort Web Solutions

Requesting Gravatar...
i am for the first time here. I found this board and I in finding It truly helpful & it helped me out a lot. I hope to present something back and help others such as you helped me.
web development company in mohali
Left by Rithik on Nov 20, 2017 1:44 PM

Your comment:

 (will show your gravatar)