A
A
Artix2014-10-16 13:26:32
Android
Artix, 2014-10-16 13:26:32

How to call private void (ANDROID)?

Hello!
I have a problem, there is a fragment in which there are several Edittext. I use PullOnRefresh (you can find the library on GitHub) and the application crashes when OnRefreshStarted is processed.
The code is something like this:

OnCreateView... {
   ...
onRefreshStarted(View view) {
Go();
}
private void Go() {
//Действия с edittext
if (a.getText().toString().length() == 0  ){
                                      a.setText("1");
                                  }
                                  if (b.getText().toString().length() == 0 ){
                                      b.setText("1");
                                  }
                                  if (c.getText().toString().length() == 0){
                                      c.setText("1");
                                  }
...
}
return rootview;
...
}

LogCat swears at the Go() method;

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question