Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

when i click back button password and username still there

 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my app when i login it goes to home page.when i am in home page if i click back button it goes to login page,but username and password is still there.What is the stander ed way to avoid this ?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Removing it after login, of course. As long as you think about "pages", that's the wrong metaphor. Think about activities instead (in the Android sense of the word).
 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i tried with below.Anyway its working fine.But i think username should be there in login screen.

 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Starting a new activity doesn't remove the credentials on the old one, you'll just end up with two login activities. Why don't you just finish the login activity after you're done with the login? Is there a point in keeping it around after a successful login?
 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your suggestion if better ULF,but in future i am going to implement the Stay signed facility.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's a "stay signed facility", and what is its relationship with what happens to the login activity after a successful login?
 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stay signed in means hen user login it reminds the user crerdentials.when next time it run no needs to enter username and password.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case there really is no connection between that, and what happens to the login activity (which may thus safely be terminated).
 
sam liya
Ranch Hand
Posts: 1243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ULF,anyway please tell me how to enable the Signed in facility in android,i think to use preference .is it better?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic