Похожие чаты

I'M trying to implement the onbackpressed() which will 1st toast

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?

1 ответов

5 просмотров

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

Похожие вопросы

Карта сайта