Android ProgressDialog shadow appears
<p>In my android application calling an API  continuously in a loop then Progress Dialog make a shadow like appearance. I think the issue is that multiple dialog running..help me to avoid this shadow. Code given below:</p>

<pre><code>for(int i = indexOfSelectedId + 1 ; i &lt; photoall_id.size(); i++)
        {
            all_postid.add(photoall_id.get(i));
            url = URLS.BASEURL + "mobile_api.php?action=post&amp;post_id=" +posoall_id.get(i)+user_id="+userid;

            new  GetImage().execute(url);


        }
 private class GetImage extends AsyncTask&lt;String, Void, ArrayList&lt;String&gt;&gt; {

        String json = null;
        ProgressDialog dialog;

        @Override
        protected void onPreExecute() {
            all_data=new ArrayList&lt;&gt;();
            dialog = new ProgressDialog(FullScreenActivity.this);
            dialog.setMessage("Loading Image...");
            dialog.setCanceledOnTouchOutside(false);
            dialog.setCancelable(false);
            dialog.show();
            super.onPreExecute();
        }

        @Override
        protected void onPostExecute(ArrayList&lt;String&gt; aVoid) {


            dialog.dismiss();


            all_url.add(aVoid.get(0));


        }

        @Override
        protected ArrayList&lt;String&gt; doInBackground(String... params) {

            JSONReader reader = new JSONReader();
            json = reader.getJsonGET(params[0]);

            if (json != null) {
                try {
                    JSONObject object = new JSONObject(json);
                    if (object.getJSONArray("posts").getJSONObject(0).getInt("count") != 0) {
                        photo_url = object.getJSONArray("posts").getJSONObject(0).getString("photo_url");

                    }
}
</code></pre>

<p>Suggest a solution.Thanks in advance</p>