QH
DISTINCT
Size: a a a
QH
DISTINCT
AA
E
AA
DISTINCT
AP
AD
AM
DB
AA
AD
AD
DB
А
if(future.isDone()){
advancedMovieAdapter.notifyDataSetChanged();
}
ExecutorService executorService = Executors.newSingleThreadExecutor();
Callable<ArrayList<Movie>> moviecallable = new Callable<ArrayList<Movie>>() {
@Override
public ArrayList<Movie> call() throws Exception {
return getListOfMovies(maxid, 10);
}
};
Future <ArrayList<Movie>> future = executorService.submit(moviecallable);
try {
generatedListOfMovies = future.get();
} catch (ExecutionException | InterruptedException e) {
e.printStackTrace();
}
AD
AD
if(future.isDone()){
advancedMovieAdapter.notifyDataSetChanged();
}
ExecutorService executorService = Executors.newSingleThreadExecutor();
Callable<ArrayList<Movie>> moviecallable = new Callable<ArrayList<Movie>>() {
@Override
public ArrayList<Movie> call() throws Exception {
return getListOfMovies(maxid, 10);
}
};
Future <ArrayList<Movie>> future = executorService.submit(moviecallable);
try {
generatedListOfMovies = future.get();
} catch (ExecutionException | InterruptedException e) {
e.printStackTrace();
}
А
DB
AD
AD
DB