title: Call Dialog from function [Android Studio]
body: <p>Did someone know how I can call a dialog from function and if it's possible, because I've already try and this is return to me : </p>
  
  <pre><code>W/System.err: java.lang.RuntimeException: Can't create handler inside thread Thread[AsyncTask #1,5,main] that has not called Looper.prepare()
  </code></pre>
  
  <p>Thanks by advance.</p>