• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps if/else inside doInBackground in AsyncTask

AlexeyS

Newbie
Hello, i get an error when i use if/else inside doInBackground.

String Town="NewYork";
if (Town.equals("NewYork")) {
Toast.....
}

When i close if/else the program is running. What i should do?

Thank you
 
Back
Top Bottom