List of utility methods to do AsyncTask Run
void | execute(final boolean forceSerial, final AsyncTask Execute an AsyncTask on a thread pool final WeakReference<AsyncTask<T, ?, ?>> taskReference = new WeakReference<AsyncTask<T, ?, ?>>( task); if (Build.VERSION.SDK_INT < Build.VERSION_CODES.DONUT) { throw new UnsupportedOperationException( "This class can only be used on API 4 and newer."); if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB || forceSerial) { ... |
void | execute(final boolean forceSerial, final AsyncTask Execute an AsyncTask on a thread pool if (Build.VERSION.SDK_INT < Build.VERSION_CODES.DONUT) { throw new UnsupportedOperationException( "This class can only be used on API 4 and newer."); if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB || forceSerial) { task.execute(args); } else { ... |
void | executeAsyncTask(AsyncTask execute Async Task if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params); } else { task.execute(params); |
void | executeAsyncTask(AsyncTask execute Async Task if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params); } else { task.execute(params); |
Process | runSuCommandAsync(String command) run Su Command Async DataOutputStream fout = new DataOutputStream(con.openFileOutput( SCRIPT_NAME, 0)); fout.writeBytes(command); fout.close(); String[] args = new String[] { "su", "-c", ". " + con.getFilesDir().getAbsolutePath() + "/" ... |