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

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -