1. Check out our app, Forums for Android! Download and leave feedback here!

Pop up the virtual keyboard

Discussion in 'Application Development' started by paulscode, Dec 1, 2010.

  1. paulscode

    paulscode Well-Known Member
    Thread Starter
    38

    Mar 18, 2010
    86
    14
    38
    Anyone know the code used to pop up the user's currently selected virtual keyboard (besides setting focus to an editable text field)? I know it is possible, as I've seen apps that do this (the Apple ][ emulator on the Android Market, for example), but I haven't seen example code for this anywhere.
     

    Advertisement

  2. bakersman

    bakersman New Member
    5

    Dec 5, 2010
    2
    0
    5
    Hi!

    Code (Text):
    1.  
    2. InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
    3. imm.toggleSoftInput(2,2);
    4.  
    Cheers!
     
  3. drorgo

    drorgo New Member
    5

    Apr 11, 2011
    1
    0
    5
    Hi , I know this question is related to another section , but I'll try to see if I get some answer here :)

    each time I gain focus to an input field in a web page , the virtual keyboard pops-up and the entire page is being zoom-in , after inputing the text the page does not return to its original sizing - what can be done in order to make sure the page will remain at a known size even when the input field is focused?

    Thanks
     

Share This Page

Loading...