android - Initiating activity for settings class -


In my code, I am calling a priority activity with my main activity, to enter the user name / password below Indicates


// Launch Preferences Activity

Intent K = New Intent (application.this, settings.class);

current activity (k);


This call settings .xml, but I want to resume main activity when the user name / password is set and the back button is pressed.

Any hint?

Do you want to reload the key, so that you can use a username and password? If so, then why not use startActivityForResult , validate username / password in Settings.class and read the result in onActivityResult in your main activity?


Comments