public static DownloadProgressListener getDownloadListenerForTask ( final GroundyTask groundyTask ) { return new DownloadProgressListener ( ) { @ Override public void onProgress ( String url , int progress ) { groundyTask . updateProgress ( progress ) ; } } ; }
Returns a progress listener that will post progress to the specified groundyTask .