title: How to use publishProgress() method inside a function called from doInBackground()
body: <p>I am using a function call from inside doInBackground() method in AsyncTask class 
  How do I call it from function .</p>
  
  <p>Kindly help .</p>
  
  <p>I am using </p>
  
  <pre><code>// function name 
  private void getFilteredHeaderData(FilterHeaderTask obj) {
  
      obj.onProgressUpdate("Updated Progress data ... ");
  
  
  }
  </code></pre>
  
  <p>where FilterHeaderTask  is the AsyncTask class name</p>
  
  <p>The app gets crashed after encountering the line of obj.onProgressUpdate();</p>
  
  <p>My doInBackground() function from AsyncTask</p>
  
  <pre><code>protected String doInBackground(String... urls) {   
  
              getFilteredHeaderData(this);
  
  
              return null;
          }
  </code></pre>