a message to tap it twice and then it will exit. The thing is, I've two activities, which are login and home activity. Once user signed in, the home activity becomes main. So, how can I add it to both activities?
I would do this: When you do the login then you could kill the login activity and remove it from the stack of activites. First you init your new main activity and then call in your login activity this method finishAffinity(). I think this is the best solution. The login activity doesn't sense when you are login yet
Обсуждают сегодня