title: Progress Dialog not show on onActivityResult function
body: <p>I have been developing application on that I got two activity.<br>
  first Activity Called Second to get Download url.</p>
  
  <p>In <code>OnActivityResult</code> function of first Activity.there is a <code>ProgressDialog</code> 
  that shows that status of image downloading using that url.</p>
  
  <p>Problem is progress dialog not been shown in that activiy.</p>
  
  <pre><code>protected void onActivityResult(int requestCode, int resultCode, Intent imagePicked) 
      {       
          super.onActivityResult(requestCode, resultCode, imagePicked);
              if(resultCode==RESULT_OK)
              {
  
                  ProgressDialog progressDialog=ProgressDialog.show(this, "", "Loading Image");
                  switch(requestCode) 
                  {
                      case CharacterSelector.GetFaceBookImage:
                          //Toast.makeText(this, "onFacebookimageresult", Toast.LENGTH_SHORT).show();
                          String ImageUrl=imagePicked.getStringExtra("DownloadLink");
                          WebService getImage=new WebService(ImageUrl);
  
                          Log.d("Selected Img url", ""+ImageUrl);  
                          InputStream inputStream;
                          try 
                          {
                              inputStream = getImage.getHttpStream(ImageUrl);
                              getImage=null;
                              Bitmap bitmap=BitmapFactory.decodeStream(inputStream);
                              inputStream=null;
                               mybitmapDrawable=new BitmapDrawable(bitmap);
                              addImageUserImage(mybitmapDrawable.mutate());
                              progressDialog.dismiss();
                              bitmap=null;
                          }
                          catch (IOException e)
                          {
                              //Show server Error message:
                              e.printStackTrace();
                          }
  
                          break;
  </code></pre>
  
  <p>Regards,
  Kariyachan     </p>