Android Question EditText strange behaviour

Discussion in 'Android Questions' started by Massy, Mar 21, 2015.

  1. Massy

    Massy Member Licensed User

    I have 2 activity: Main and Second
    I have 1 EditText in the Main activity that works just fine.
    But if I open the second activity (by StartActivity(Second)) and I click a button in Second activity that brings me back to Main activity (with StartActivity(Main)
    the EditText doesn't respond to the touch anymore... it just doesn't open the keyboard!
    But if instead of using the button in second activity I use the system back button (the one from Android system) then the EditText works fine...
    Am I doing something wrong?
    It is not the right way to go back to the Main activity the command StartActivity(Main) ?
    Thanks for any help
    Massy
     
  2. NJDude

    NJDude Expert Licensed User

    Instead of doing StartActivity(Main), just do Activity.Finish.
     
  3. Massy

    Massy Member Licensed User

    Thanks a lot Dude!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice