title: Returning from Asynch Task to MainActivity
body: <p>I read a lot about it and tried many things, without having succes. But it doesn't seem hard at all, so I guess I am missing a little thing.</p>
  
  <p>I got 2 classes, a <code>MainActivity</code> and an <code>asynch task</code> class.<br>
  the <code>doInBackground</code>task is working perfectly.
  But when it is done, I want to program to continue at a certain point in my <code>MainActivity</code>  </p>
  
  <pre><code>protected Integer doInBackground(Void... params) {
      try {
          Log.d("control", "ZipHelper.unzip() - File: " + _archive);
          ZipFile zipfile = new ZipFile(_archive);
          for (Enumeration&lt;? extends ZipEntry&gt; e = zipfile.entries(); e
                  .hasMoreElements();) {
              ZipEntry entry = (ZipEntry) e.nextElement();
              unzipEntry(zipfile, entry, _outputDir);
  
          }
      } catch (Exception e) {
          Log.d("control", "ZipHelper.unzip() - Error extracting file "
                  + _archive + ": " + e);
          setZipError(true);
      }
      return null;
  }
  protected void onPostExecute(Integer... result) {
      //Here something like MainActivity.showPicture();
  }
  </code></pre>
  
  <p>I know I must do something with <code>onPostExecute</code>, but I don't know what exactly.<br>
  So let's say, I want to show a Toast in my <code>MainActivity</code> after <code>asynch-task</code> is done?</p>