Guest User

Untitled

a guest
Jan 16th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. keyboard.setOnKeyListener(new OnKeyListener() {
  2. public boolean onKey(View v, int keyCode, KeyEvent event) {
  3. if(keyCode == KeyEvent.KEYCODE_ENTER&&event.getAction()==KeyEvent.ACTION_UP){
  4. out.println("enter");
  5. return true;
  6. }
  7. return false;
  8. }
  9. });
  10.  
  11. private TextWatcher watcher = new TextWatcher() {
  12. public void onTextChanged(CharSequence s, int start, int before, int count) {
  13. if(count>0){
  14. out.println(":"+s.subSequence(start, start+count).toString());
  15. }
  16. }
  17. .
  18. .
  19. .
  20.  
  21. if(s.toString().substring(start).contains("n"))
Add Comment
Please, Sign In to add comment