app/src/main/java/com/mybp/DatabaseTable.java
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
    private < T > void executeAsyncTask(AsyncTask< T, ?, ? > asyncTask, T... params) {
        if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            asyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params);
        } else {
            asyncTask.execute(params);
        }
    }
// AsyncTask methods and inner classes inheriting from AsynTask class
AsyncTask methods and inner classes inheriting from AsynTask class
AsyncTask methods and inner classes inheriting from AsynTask class
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
    private < T > void executeAsyncTask(AsyncTask< T, ?, ? > asyncTask, T... params) {
        if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
            asyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params);
        } else {
            asyncTask.execute(params);
        }
    }
@ TargetApi ( Build . VERSION_CODES . HONEYCOMB ) private < T > void executeAsyncTask ( AsyncTask < T , ? , ? > asyncTask , T ... params ) { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . HONEYCOMB ) { asyncTask . executeOnExecutor ( AsyncTask . THREAD_POOL_EXECUTOR , params ) ; } else { asyncTask . execute ( params ) ; } }
AsyncTask methods and inner classes inheriting from AsynTask class
AsyncTask methods and inner classes inheriting from AsynTask class