How to show a progress dialog while waiting for share intent to pop up
<p>I noticed on older devices that once you do a standard share intent (fb, twitter, email, etc) there is a few second delay until the actual share dialog is popped up.  I was wondering how you would be able to have a progress dialog pop up while you are waiting for this share dialog to show up?</p>

<p>Here is my code:</p>

<pre><code> private void share(String subject,String body) {
        Intent share = new Intent(Intent.ACTION_SEND);
        share.setType("text/plain");
        share.putExtra(android.content.Intent.EXTRA_SUBJECT, title);
        share.putExtra(android.content.Intent.EXTRA_TEXT, body);
        startActivity(Intent.createChooser(share, "Share via"));
    }
</code></pre>
