I have gone through your code.
You have defined all the variable static. That's why the issue arise.
This is a big problem. If you want, i can review your complete application and check the code it remotely.
If yes then, there will be a charge of rupees 500 for 30 mins.
If not then, you need to change all variable from static to normal.