I want to execute a specific command only in the first application lunch and when the user opens the application again another command will be executed instead . Here's an example
if (this_is_first_lunch == true){
Toast.makeText(getApplicationContext(), "First time to open the app", Toast.LENGTH_SHORT).show();
}else{
Toast.makeText(getApplicationContext(), "Not the first time to open it", Toast.LENGTH_SHORT).show();
}
My question here is what should I write instead of "this_is_first_lunch" to make this code working?