how to call async task with different url
问题 I need to call asynctask with different urls. i have three button, they do a http post to server with different urls, now i can call asynctask with one url but how can i call the same function with different urls.the following is my asynctask class: private class Downloadfiles extends AsyncTask<URL, Integer, JSONObject>{ @Override protected void onPostExecute(JSONObject jo) { try { cards = jo.getInt("cards"); points = jo.getInt("points"); cash = jo.getInt("cash"); } catch (JSONException e1) {