java - Android closes on login screen when backspace pressed on login activity -



java - Android closes on login screen when backspace pressed on login activity -

the application working on has login page users set in credentials, , log in.

for reason, if user presses backspace key while typing password, application closes phone's main screen.

the logcat result shown upon press is:

4332-4332/com.etc.etc w/iinputconnectionwrapper﹕ showstatusicon on inactive inputconnection

i looked around not find prepare - maybe missing something.

thank you!

edit:

i have found code responsible this. don't know previous developer had in mind, after commenting out there no more issues.

@override public boolean onkeydown(int keycode, keyevent event) { finish(); homecoming super.onkeydown(keycode, event); }

back button, default, finishes activity. if don't want finish, override press function:

@override public void onbackpressed() { //do whatever want or nil }

java android

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -