title: ProgressBar update from within Handler
body: <p>I have a syncing service that I want a progress bar for, because it takes >1 minute to sync all the data and I don't want to use indeterminate progress. I have a Handler for the syncing functions and am referencing and correctly updating the progressBar's progress but the UI does not update.</p>
  
  <pre><code>  Handler handler = new Handler() {
              @Override
              public void handleMessage(Message msg) {
                   //Sync calls
                       updateProgress(getContext());
                  }
   };
   public static void updateProgress(Context c){
      layout = (LayoutInflater) c.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      progress_view = layout.inflate(R.layout.sync_dialog, null);
  
      mProgressStatus += mProgressStep;
      mProgress = (ProgressBar) progress_view.findViewById(R.id.progress);
  
      mProgress.setProgress(mProgressStatus);
  }
  </code></pre>
  
  <p>I have tried using an ASynchTask class with no success. Any help is appreciated.</p>