Issue
I have a piece of code that I only want to run the very first time a particular OnCreate() method is called (per app session), as opposed to every time the activity is created. Is there a way to do this in Android?
Solution
use static
variable.
static boolean checkFirstTime;
Answered By - KDeogharkar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.