Skip to content

Instantly share code, notes, and snippets.

@rupakraj
Last active February 25, 2016 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rupakraj/30849cf958ff75e8b8c2 to your computer and use it in GitHub Desktop.
Save rupakraj/30849cf958ff75e8b8c2 to your computer and use it in GitHub Desktop.
Android - contineous call to function
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