java - Complete first method before starting 2nd -


my issue here in these line :

 @override         public void onclick(view arg0) {             dofirstmethod();             dosecondmethod();     } 

the problem don't know how program 2nd method before 1st finished. there way in java start 2nd method after 1st finished thought delaying 2nd method , after few seconds realized 1st methods speed on every mobile device different.

use handler or thread

@override     public void onclick(view arg0) {         dofirstmethod(); }  public void dofirstmethod {     .....      .....      dosecondmethod(); } 

Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -