The "What I have tried" section is for you to share with us the code that you are having problems with. This question is far too broad to fall within the scope of a "Quick Answer". No-one here is going to either write the code for you nor start to teach you.
Try going through the articles on Android development here on CodeProject -
http://www.codeproject.com/KB/android/[
^], have a go at what you are trying to achieve, then come back with a specific question if you get stuck.