title: how to use progressbar when loading image in picasso?
body: <p>I want <code>onStart()</code> method to load image from server using picasso and I want to show a progress bar until the photos are fully downloaded 
  Here is my code:</p>
  
  <pre><code>@Override
      protected void onStart() {
          // TODO Auto-generated method stub
          super.onStart();
  
          Picasso.with(context).load(imageLoad)
                  .placeholder(R.id.progressBarDetails)
                  .error(R.drawable.friend_request).noFade().resize(200, 200)
                  .into(avatarImage, new Callback() {
                      @Override
                      public void onError() {
                          // TODO Auto-generated method stub
  
                      }
  
                      @Override
                      public void onSuccess() {
                          // TODO Auto-generated method stub
                          progressbar.setVisibility(View.GONE);
                      }
  
                  });
  
          Picasso.with(this).load(imageLoad).into(target);
  
      }
  
      OnFinished a = new OnFinished() {
  
          @Override
          public void onSendFinished(IntentSender IntentSender, Intent intent,
                  int resultCode, String resultData, Bundle resultExtras) {
              // TODO Auto-generated method stub
              intent = new Intent(getApplicationContext(), Map.class);
          }
      };
  
      private Target target = new Target() {
          @Override
          public void onBitmapLoaded(final Bitmap bitmap, Picasso.LoadedFrom from) {
              new Thread(new Runnable() {
                  @Override
                  public void run() {
                      File file = new File(Environment
                              .getExternalStorageDirectory().getPath()
                              + "/actress_wallpaper.jpg");
                      try {
                          file.createNewFile();
                          FileOutputStream ostream = new FileOutputStream(file);
                          bitmap.compress(CompressFormat.JPEG, 75, ostream);
                          ostream.close();
                      } catch (Exception e) {
                          e.printStackTrace();
                      }
  
                  }
              }).start();
          }
  </code></pre>