what is the best way for AsyncTask to notify parent activity about completion?
<pre><code>public class ListingFoundBeaconService extends AsyncTask&lt;String, String, String&gt; 
{

      public ListingFoundBeaconService(Context contextGiven, JSONObject jsonParams)
      {
            this.contextGiven   =   contextGiven;
            this.jsonParams     =   jsonParams;
       }

        protected void onPreExecute() 
        {
            super.onPreExecute();
            pDialog = new ProgressDialog(contextGiven);
            pDialog.setMessage("Loading list of active Beacons..");
            pDialog.setIndeterminate(false);
            pDialog.setCancelable(true);
            pDialog.show();
            Log.d("onPreExecute","onPreExecute worked" );
        }

        protected String doInBackground(String... args) 
        {
        }

       protected void onPostExecute(String file_url)    
       {

           // two activities will need this thread so I have kept this as Separate Class 
          // here i want to send boolean value to parent activity that task completed or not
       }
</code></pre>

<p>Can i trigger a notification OR Complete event listener in onPostExecute() function so that parent class which started this class(ListingFoundBeaconService) is notified ??  what is the standard way of doing it ?</p>
