this solution is good for all platforms minor of android 3. With android 3 the toogleSoftInput close the keyboard since android 3 open the softkeyboard by default.
Is there a way to openKeyboard without toogle it? On Sep 2, 8:59 pm, sblantipodi <[email protected]> wrote: > Just solved, I post the solution, just for reference. > > myAlertDialog.show(); > showVirturalKeyboard(); > > this is the showVirtualKeyboard() method: > > // Mostra la tastiera virtuale > private void showVirturalKeyboard() { > Timer timer = new Timer(); > timer.schedule(new TimerTask() { > > @Override > public void run() { > InputMethodManager m = (InputMethodManager) > MCPRO.this.getSystemService(Context.INPUT_METHOD_SERVICE); > > if (m != null) { > // m.toggleSoftInput(0, > InputMethodManager.HIDE_NOT_ALWAYS); > m.toggleSoftInput(0, > InputMethodManager.SHOW_IMPLICIT); > } > } > }, 100); > } > > On Sep 2, 5:06 pm, sblantipodi <[email protected]> wrote: > > > > > > > > > it doesn't works. > > can't understand how to do that. -_- > > > On Sep 2, 3:20 pm, TreKing <[email protected]> wrote: > > > > On Fri, Sep 2, 2011 at 8:01 AM, sblantipodi > > > <[email protected]>wrote: > > > > > can't understand why something as simple should became as difficult. > > > > That is an unfortunate reality of software development =P > > > > ------------------------------------------------------------------------------------------------- > > > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > > > transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

