Skip to content Skip to sidebar Skip to footer

Using An Interface From Multiple Async Tasks

I have an interesting fragment with multiple spinners. THe first spinner, loads the data into the second spinner based on what was selected. It looks something like this: When the

Solution 1:

It seems that in this line:

new PortfolioGetAllBeers(selectedItemView.getContext()).execute(url);

You are creating and triggering async task witout setting listener. So you should do one of the following things:

set listener always before executing created async task

check if listener is not null before calling it:

if(listener != null){
  listener.onArticleSelected(tempID, tempBrewID);
}

Post a Comment for "Using An Interface From Multiple Async Tasks"