0

I want to add a technique, which will Check value of a variable after 5 or 10 mins interval. If the value of the variable have Changed then send a notification to notification bar from Application. & Application will always work in Background and Foreground.

Any sample code or Tutorial link suggested.

pskkar
  • 432
  • 1
  • 4
  • 18

1 Answers1

0

Don't use runOnUiThread or any simple thread. Use an AsyncTask for this. It is very simple: http://developer.android.com/reference/android/os/AsyncTask.html

UFC Insider
  • 838
  • 1
  • 7
  • 19