Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Login Activity, then remove it. How ?

Login Activity, then remove it. How ?

Put your problem here if it does not fit any of the other categories.

Login Activity, then remove it. How ?

Postby mmdumi » Tue Aug 25, 2009 9:40 am

Hello.
I want to build a simple application, for a webservice. First of all, my main activity is one where the users enters his/hers username and password, clicks login, and if the credentials are fine i start a new activity with his dashboard.
The thing is that, i don't want the user to go back to login activity ever again, and right now if you click on the left arrow from the emulator, the login activity pops out.

I thought that i could override onResume method from my login activity and then, if the user has already logged in i could restart again the dashboard activity. But i realize that this is stupid.

How can i do this, "the right way" ? I know that android platform puts every activity into a stack, but how do i dismiss the login one ?
Thanks.
mmdumi
Freshman
Freshman
 
Posts: 9
Joined: Tue Aug 25, 2009 9:31 am
Location: Bucharest

Top

Postby arams » Tue Aug 25, 2009 10:59 am

just finish the activity...

Login.Finish();
arams
Experienced Developer
Experienced Developer
 
Posts: 89
Joined: Fri May 08, 2009 7:45 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 13 guests