1

I declared a boolean variable to be public static in my android activity and assigned a false value to it outside the onCreate.

only one method can change its value to true, so once its executed

the value of the boolean variable was set to true even on a new launch after finishing the activity.

didn't know why but it happened.

solved it by assigning a false value in the onCreate method.

Comments
Add Comment