Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- keyboard.setOnKeyListener(new OnKeyListener() {
- public boolean onKey(View v, int keyCode, KeyEvent event) {
- if(keyCode == KeyEvent.KEYCODE_ENTER&&event.getAction()==KeyEvent.ACTION_UP){
- out.println("enter");
- return true;
- }
- return false;
- }
- });
- private TextWatcher watcher = new TextWatcher() {
- public void onTextChanged(CharSequence s, int start, int before, int count) {
- if(count>0){
- out.println(":"+s.subSequence(start, start+count).toString());
- }
- }
- .
- .
- .
- if(s.toString().substring(start).contains("n"))
Add Comment
Please, Sign In to add comment