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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -