SHARE
TWEET

Android AsyncTask Compat

Pauland Nov 6th, 2012 111 Never
  1. public abstract class AsyncTaskBase<Param, Progress, Result> extends AsyncTask<Param, Progress, Result>
  2. {
  3.  
  4.         @TargetApi(11)
  5.         public final void ExecuteCompat(Param... params)
  6.         {
  7.                 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
  8.                         this.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params);
  9.                 else
  10.                         this.execute(params);
  11.  
  12.         }
  13. }
RAW Paste Data
Top