java - passing asynctask objects to other activity -


i want list displayed in new activity, when click button results in same page, how results passed new activity?
button:

mylist.setonclicklistener(new view.onclicklistener() {         @override         public void onclick(view v) {            new asynctask().execute("");          }     }); 

onpostexecute:

protected void onpostexecute(boolean result) {                 super.onpostexecute(result);                  //arrays.sort(avstand);                 intent intent = new intent();                  minvalue = getminvalue(avstand);                  if(result== false){                  toast.maketext(getapplicationcontext(), "unable fetch data server", toast.length_long).show();                  } else {                     adapter adapter = new adapter(getapplicationcontext(),r.layout.rad, myliste);                     list.setadapter(adapter);                 }             } 


Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -