How to make Asynchronous nonblocking thread FACEBOOK in Android -


i trying make facebook asynchronous non blocking thread in android. due our ui run separate thread unable can 1 tell me how that. , if possible pleade give me 1 example. thanks.........

i don't know facebook access ui component other thread-

public class dictionary extends activity{            handler mhandler;     public void oncreate(bundle savedinstancestate) {         super.oncreate(savedinstancestate);         handler mhandler = new handler();         searchthread thread = new searchthread();         thread.setparent(this);         thread.sethandler(mhandler);    }    public void notifyitemchanged(arraylist<listitem> litems){    //write code relating ui here    }    private class searchthread extends thread{       private handler handler;       dictionary parent;        public void setparent(dictionary parent) {         this.parent = parent;       }        public void sethandler(handler handler) {         this.handler = handler;       }        @override       public void run() {           final runnable mupdateresults = new runnable() {             public void run() {                 parent.notifyitemchanged(listitems);             }                            };         handler.post(mupdateresults);   }  } 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -