Code example for ProgressDialog

Methods: hide

0
     */ 
    @Override 
    protected final void onPostExecute(Address address) {
        super.onPostExecute(address);
        // Hide dialog and return results using listener 
        progressDialog.hide();
        geoCoderTaskListener.onLocationFound(address);
    } 
 
    /** 
     * A callback interface to get notified whenever a an address is found for the place search 
     */ 
    public interface GeoCoderTaskListener { 
 
        /** 
         * Invoked when an Address is found or the geocoder has completed with no address in which case it will be invoked with a null arg 
         * @param address the found address 
         */ 
        void onLocationFound(Address address);
    } 
}