Advertisement
moonlightcheese

Untitled

Jun 24th, 2011
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. public boolean onOptionsItemSelected(MenuItem item) {
  2.         switch(item.getItemId()) {
  3.             case R.id.opt_ip_config:
  4.                 //setup ip screen
  5.                 removeDialog(DIALOG_WIFI_PREF);
  6.                 showDialog(DIALOG_WIFI_PREF);
  7.                 InputMethodManager mgr = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
  8.                 //mgr.hideSoftInputFromWindow(editText.getWindowToken(), 0);
  9.                 mgr.toggleSoftInput(0,0);
  10.                 //mgr.showSoftInput(dialog,
  11.                 return true;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement