I am trying to update my activity whenever a variable is false inside a method.
I've tried this:
finish();
startActivity(getIntent());
But when I try to start my activity my app just stops and never shows the activity.
I've also tried calling onCreate method but when the variable is false my activity does not updates.
Please help or suggestions!