I use onDestroy() method, and my code is not completed:
@Override
public void onDestroy() {
super.onDestroy();
for (int i = 0 ; i < 10; i++) {
Toast.makeText(this, "Destroy " + i, Toast.LENGTH_SHORT).show();
}
}
The for loop stops at index 2. Why does the loop not end?