AFAIK your variable values will not be affected As long as you don't finish your activity or explicitly reset/change variables values.If you meant to keep variable values you must use some storage machanism. (File / SharedPreference etc)
Vogella has written very good post on Persistence
http://www.vogella.com/articles/AndroidFileBasedPersistence/article.html#overview_fileAPI