public static boolean bulksInsertEpisodes(Context context,List<Episode> episodeList){
  Log.d(TAG,"Number episode to bulk insert: " + episodeList.size());
  ContentResolver contentResolver=context.getContentResolver();
  ContentValues[] records=new ContentValues[episodeList.size()];
  for (int i=0; i < records.length; i++) {
    records[i]=EpisodeModel.fromEpisode(episodeList.get(i));
  }
  return contentResolver.bulkInsert(PremoContract.EpisodeEntry.CONTENT_URI,records) > 0;
}

public static boolean bulksInsertEpisodes ( Context context , List < Episode > episodeList ) { Log . d ( TAG , "Number episode to bulk insert: " + episodeList . size ( ) ) ; ContentResolver contentResolver = context . getContentResolver ( ) ; ContentValues [ ] records = new ContentValues [ episodeList . size ( ) ] ; for ( int i = 0 ; i < records . length ; i ++ ) { records [ i ] = EpisodeModel . fromEpisode ( episodeList . get ( i ) ) ; } return contentResolver . bulkInsert ( PremoContract . EpisodeEntry . CONTENT_URI , records ) > 0 ; }
bulk inserts a list of episodes into the database
