Code to Show Toast message after dismiss the progress dialog in android?
<p>I have situation where I want to toast message to user after dismissing the Progress dialog.
how can i do this all code is executed only the Toast.showMessage(,"",,).show is not working.
Below is my code please look into this and give me the suggestion. </p>

<pre><code>if (common.split.equals("failure")) {

                try {

                    if (this.pd.isShowing()) {
                        this.pd.dismiss();
                    }


                    Toast.makeText(getApplicationContext(), "No data found",
                            Toast.LENGTH_SHORT).show();
                } catch (Exception e) {
                    // TODO: handle exception
                }

            }
</code></pre>
