The typical way for you to do this is to have the login screen check
to see if it needs to login and, if not, call startActivity()
immediately to display the "real" main screen of the app.  In both the
login and no login cases, call finish() immediately after
startActivity() so the user can't navigate back to the login screen.

In the ApiDemos activity section you will find an example that does
this, though I don't recall off-hand what it is called.

On Apr 20, 8:24 pm, André Oriani <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am working on a Instant Messaging Application.  Okay, The
> applications starts with a login screen that asks for username and
> password. When login key is pressed  I start a subactivity to show the
> contact list.
>
> I see 2 potential problems here;
>
> 1)When user leaves the application, it is still running ( i've
> implemented a service). When user go to Apps folders and selects my
> app. I want it to show the contact list, not to display the login
> screen again
>
> 2) if in the account list the user press back key , the app will
> return to login screen and not to home screen
>
> Any tips or advices to solve these situations?
>
> Tks,
> André
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to