Last active
February 25, 2016 05:18
-
-
Save rupakraj/30849cf958ff75e8b8c2 to your computer and use it in GitHub Desktop.
Android - contineous call to function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void Timer(){ | |
final Handler ha=new Handler(); | |
ha.postDelayed(new Runnable() { | |
@Override | |
public void run() { | |
Debug.Log("Calling data"); | |
// call your function | |
ha.postDelayed(this, 20*1000); | |
} | |
}, 10000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment