If Solution 1 is not enough for you, you can find a lot of information:
http://bit.ly/1mFp8ni[
^].
Sorry, but I am not looking to find out some ready-to-use code sample for you, review and test it, and so on. I tried to explain why in my comments to the question. I can only remind you that the most interested person is you, and there is nothing too difficult for you here.
—SA