title: How to show alert dialog in a running thread?
body: <p>I'm developing an Android Game.In this game, There are tracks on which trains run. This is running thread. I want to show an alert dialog when there is a collision between. when I'm applying alert dialog showing error can't create handler inside thread that has not called <code>looper.prepare()</code>.</p>