Pop up the virtual keyboard


Last Updated:

  1. paulscode

    paulscode Well-Known Member This Topic's Starter

    Joined:
    Mar 18, 2010
    Messages:
    86
    Likes Received:
    14
    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

    Joined:
    Dec 5, 2010
    Messages:
    2
    Likes Received:
    0
    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

    Joined:
    Apr 11, 2011
    Messages:
    1
    Likes Received:
    0
    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...