i want to clear variable value when will i close activity
Thanks All
I think when you close your activity, the android OS will destroy any data associated with your application that isn't saved in a DB, and if you're worried about closing, then reopening the same activity, you can always assign default values to your variables upon creating them.. like
int x = 0;
sort of thing, this is always a good practice anyways! -M@
精彩评论