UploadImages/AndroidStudio/imageUploadRS/app/src/main/java/com/example/imageuploadrs/ToDoActivity.java
/**
     * Run an ASync task on the corresponding executor
     * @param task
     * @return
     */
Run an ASync task on the corresponding executor
@param task
@return
Run an ASync task on the corresponding executor @param task @return
private AsyncTask<Void, Void, Void> runAsyncTask(AsyncTask<Void, Void, Void> task) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            return task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);
        } else {
            return task.execute();
        }
    }
private AsyncTask < Void , Void , Void > runAsyncTask ( AsyncTask < Void , Void , Void > task ) { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB ) { return task . executeOnExecutor ( AsyncTask . THREAD_POOL_EXECUTOR ) ; } else { return task . execute ( ) ; } }
Run an ASync task on the corresponding executor
 @param task
 @return
Run an ASync task on the corresponding executor @param task @return