How do I pass value on doInBackground so It can use it. When I type the String directly inside doInBackgroud it works. But I have three type "Professional", "General", "Special" I don't want to create 3 asyncTask. In my research i found that I need to create contructor but im don't get It.
String type = "professional";
new loadQuestioners().execute(type);
public class loadQuestioners extends AsyncTask <String, Integer, JSONArray> {
@Override
protected JSONArray doInBackground(String... arg0) {
//is the arg0 is the type i passed?
return null;
}
}