So I have a fully functional mapview activity I currently use a refresh button call the method below to redraw overlays based on coordinates which works fine. I would like to be able to auto-refresh it using a thread. By auto-refresh, I would like to redraw my overlays by calling the method below every x amount of seconds from a thread.
Because I am receiving coordinates it is essential to refresh every x amount of seconds. When I create a separate class for the refresh thread everything works fine but it randomly crashes with an uncaught exception.