[Solved] How to make a text change you from one screen to another [closed]


I suppose you are referring to changing from one screen (activity) to another by typing something and not by clicking a button. If that is the case use TextWatcher and on change check for your string (or command) and move to next screen. Something like.

textView.addTextChangedListener(new TextWatcher(){
    public void afterTextChanged(Editable s) {}
    public void beforeTextChanged(CharSequence s, int start, int count, int after){}
    public void onTextChanged(CharSequence s, int start, int before, int count){
        if("second".equalsIgnoreCase(s)){
            Intent intent = new Intent(this, SecondActivity.class);
            startActivity(intent);
                    }
    }
}); 

0

solved How to make a text change you from one screen to another [closed]