0

How to call another activity automatically without no event,

After i enter the data's in EditText Box to open the another activity in automatically

Ardalan Shahgholi
  • 11,967
  • 21
  • 108
  • 144
Siva Sonai
  • 107
  • 12

2 Answers2

2

You have to use TextWatcher. In textWatcher,

public void onTextChanged(CharSequence s, int start, int before,
            int count) {
if (count > 0) {
// start your actvity in this
 } }

It works.

Sanwal Singh
  • 1,765
  • 3
  • 17
  • 35
0

No event?? That means it's random..

Do you mean that you want specific text entered into the EditText? Use a TextWatcher like here:

How to use the TextWatcher class in Android?

That will allow you to monitor the text and launch activities or whatever, based on the text input.

It won't tell you when someone is "done" or when it "should" launch. In other words, something has to happen - some event - even if it's the completion of a word, sentence, number, etc. Or even if someone starts typing and then stops...

Community
  • 1
  • 1
Jim
  • 10,172
  • 1
  • 27
  • 36