Android Question Multiple Activities Issue

Discussion in 'Android Questions' started by Tom Skotnicki, Mar 29, 2015.

  1. Tom Skotnicki

    Tom Skotnicki New Member Licensed User

    Firstly, I am an absolute newbie creating my first useful app.

    I have two activities, one main and another that gathers some input, updates a process variable and subsequently returns to main. I am using startactivity to switch between the two. The main activity has two edittext objects, when starting main, the first edittext (txtitem) gets the focus and the keyboard appears in all caps due to txtitem.InputType = Bit.OR(txtitem.INPUT_TYPE_TEXT, 4096).

    The edittext objects and the keyboard work correctly until I switch activities. After switching to activity 2 and returning to the main activity, the txtitem appears to have focus (blinking cursor within) but the keyboard shown is the standard keyboard NOT set to uppercase and the no text can be entered into txtitem as if it were disabled or locked. Sometimes the keyboard fails to appear at all and sometimes this same behavior happens when switching to the second activity. I have tried txtitem.requestfocus statement in the activity resume sub to no avail.

    I am not using the IME object, some posts I have read indicate I am better off allowing the OS to manage the keyboard. However, I have tried to use the IME but is does not seem to alleviate the issue.

    Thanks for any help!
  2. klaus

    klaus Expert Licensed User

    Without seeing your code it's impossible to give you a concrete advice.
    You should post your project as a zip file (IDE menu File / Export As Zip),
    or at least a small project showing the problem.
  3. Tom Skotnicki

    Tom Skotnicki New Member Licensed User

    My app is heavily dependent on external data, I will try to rebuild it using data packaged with the app and then post it as you suggest.

    Thanks, Tom Skotnicki
  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