Android skip activity on back button press?

In the manifest, add android:nostory="true as an attribute of the login activity.

In the manifest, add android:nostory="true" as an attribute of the login activity.

Calling finish() after startActivity() is the way to go. You should investigate on why it crashes in that case.

Consider launching the main app and then launching the login screen as a custom modal dialog. Tips for a modal launch: 1) builder. SetCancelable(false); 2) Do NOT use a static method and call show() as in the open source eula examples.

This implementation fails if the user turns the phone. Instead use the standard pattern onCreateDialog, getInstanceMyDialog, showDialog(int). 3) The modal dialog can return data if you call it using startActivityForResult or the modal dialog can write to a custom prefs file.JAL.

Now my problem is when the back button is pressed the user is taken to the login screen again. Is there any way to fix this problem? I have tried calling finish() right after startActivity() but it only made the application crash and didn't seem a good solution either.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions