Manmath,

Are you talking about using an Activity to 2 views?

hackbod,

But when user clicks on the app icon, the Activity for login screen
will always be launched, am I right ?
And did you mean  ApiDemos/src/com/google/android/samples/app/
Forwarding.java ?


Thanks,
André

On 21 abr, 02:14, Manmath <[EMAIL PROTECTED]> wrote:
> Hi André,
>
> The answers are as follows :
> Ans 1: Use Prefs file to store a boolean value for user logged in
> status. You can put the following condition on the onCreate().
>       If(user logged in ) then show list.
>       else show login screen.
> Ans 2: I am agreed with hackbod. You need to  finish the Login
> activity as soon as your login is completed.
>
> Regards
> Manmath
>
> On Apr 21, 9:25 am, hackbod <[EMAIL PROTECTED]> wrote:
>
> > 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