Skip to content Skip to sidebar Skip to footer

Softkeyboard Not Showing In Alertdialog For Phone Only

Why the softkeyboard is showing only on the tablet is a mystery ! Here is the code that I have used. AlertDialog.Builder builder = new AlertDialog.Builder(CurrentActivityName.this)

Solution 1:

I solved the problem

AlertDialog alertDlg = builder.create();

alertDlg.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);

alertDlg.show();

Post a Comment for "Softkeyboard Not Showing In Alertdialog For Phone Only"