My goal is to achieve the following *order of execution*: (1) search(); // perform GwebSearch().execute (2) SearchComplete(); // gather 'nr_hits' in a global variable (3) processHits(); // process 'nr_hits'
mySearchFunction() includes these 2 calls: 1: search(); 2: processHits(); And SearchComplete() is called when the search is completed. Its goal in my code is to initialize the variable 'nr_hits' With this code, in contrast to what I want, the order of execution is the following: 1: search(); 2: processHits(); 3: SearchComplete(); I wonder how to make sure that processHits() is called just after SearchComplete() in order to achieve my desired order of execution. Comments welcome, Ruben --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---