Login dialog restart

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Login dialog restart

Postby Helios » Fri Feb 27, 2009 4:13 pm

Hi to all,

I have implemented a login dialog where a username and a password. My problem is that I haven't been able to make the dialog "restart" if the username and password don't match. In this moment my dialog shows a message but still passes to the main activity. Is there a function restart? How can I fix this? Thanks in advance.

Regards,
Helios
Helios
Junior Developer
Junior Developer
 
Posts: 23
Joined: Sat Jan 17, 2009 7:11 am

Top

Postby MrSnowflake » Mon Mar 02, 2009 9:26 am

You should use showDialog() for this, and then when you discover the username/password are not correct just showDialog() again.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot], Majestic-12 [Bot] and 7 guests