Android execute a method after another method is done
having the following codes, I want to make sure that afterLoad() gets
executed after loadPage() is done, but using the debugger I figured out
that before loadPage() is completely done afterLoad() gets executed.
public class MainActivity extends FragmentActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layout_main_new);
loadPage();
afterLoad();
}
}
what is the easiest way to force loadPage to be done before afterLoad()
starts? Please come up with code.
No comments:
Post a Comment