title: Android Recursive Handler Call
body: <p>Im trying to run 2 Handlers, but the trick is that when pass the first second the first thread run, when that thread finish(1 second) start the second thread, when the second thread finish(1second) it goes again with the first thread and the cycles continues.</p>
  
  <p>My approach was using this:</p>
  
  <pre><code>val UI_HANDLER = Handler()
  
  val UI_UPDATE_POSITION = object : Runnable {
          override fun run() {
              locations()
              UI_HANDLER.postDelayed(this@MapsFragment.UI_UPDATE_NEW_POSITION, 1000)
          }
      }
  
      val UI_UPDATE_NEW_POSITION = Runnable {
          locations()
          UI_HANDLER.postDelayed(this.UI_UPDATE_POSITION, 1000)
      }
  </code></pre>
  
  <p>however im receiving a Recursive Problem, anyone can advice me what im doing wrong, im search in google but without any success.</p>