I reated configuration in mainfest file as follows
shortcut is created on homescreen, but the problem is when i click on this it is not retaining the state correctl
I'm going to assume that you started the app initially (the first time) from an IDE (like Eclipse or IntelliJ) or after installing it using the installer (from the market or browser or clicking on APK in file browser). If so, this is a known bug in Android (see http://code.google.com/p/android/issues/detail?id=26658 ). Many people have struggled for days chasing this problem :-(
A simple workaround for this problem can be found at http://code.google.com/p/android/issues/detail?id=2373#c21
To verify this is your problem, don't start it from the IDE or installer. Simply install the app and then go start it from the list of available applications.
If the shortcut is created programmatically then your app wont resume because you have specified an activity for shortcut intent,
To solve this, have a look at the the answer here