I have a button i need two action to be taken place ,that is when i open my app for the first time after installation it should preform a task .after the first launch it did not want to perform the first action how can i implement this?
I implement this,
private int _clicks = 0;
k = (Button)findViewById(R.id.button1);
if(count == 1)
//do whatever
if(count == 2)
//do whatever
if(count == 3)
//do whatever
}
});
You have to remember that you have performed the task already. So I suggest you store a value in the SharedPreferences Which you set after performing the task and recheck before handling any other click in the future.