If you want to hide the keypad in Android, please use the following code.
private void hideKeypad() {
// hide keypad
final View view = getCurrentFocus();
if (view != null) {
final InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
}
}
2019년 10월 25일 금요일
How to kill the current process in Android?
If you want to kill the current process in Android, please try to use the following code.
public void killProcess(Activity activity) {
ActivityCompat.finishAffinity(activity);
System.runFinalizersOnExit(true);
System.exit(0);
}
public void killProcess(Activity activity) {
ActivityCompat.finishAffinity(activity);
System.runFinalizersOnExit(true);
System.exit(0);
}
FlashLite - A lite flashlight app for Android
If you find a light flashlight app, the following app is a good choice.
Please, get it on Google Play.
Please, get it on Google Play.
피드 구독하기:
글 (Atom)