You can open keyboard using following code
InputMethodManager inputMethodManager =
(InputMethodManager)
getSystemService(Context.INPUT_METHOD_SERVICE);
inputMethodManager.toggleSoftInputFromWindow(
txt_credit.getApplicationWindowToken(),
InputMethodManager.SHOW_FORCED, 0);
inputMethodManager.toggleSoftInputFromWindow(
txt_credit.getApplicationWindowToken(),
InputMethodManager.SHOW_FORCED, 0);
replace txt_credit with your edit text's view
place above code in button's on click