In my application, when the user logs in if he presses onBackPressed()
on his smartphone the application should not go back to the previous screen.
When it logs in and I change activity I set it to Intent the following code:
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
In some cell phones the following code works .. In others it does not. What to do?