title: Can I get dialog from Activity.?
body: <p>I have a function activity as a parameter. I'm trying return a dialog shown on this activity,can I do this or not.?</p>
  
  <pre><code>private Dialog getDialogFromActivity(Activity activity){
       Dialog dialog = null;
       //code get dialog from activity here
       return dialog;
  }
  </code></pre>