Code example for ArrayList

0
 
  SupplementalInfoRetriever(TextView textView, HistoryManager historyManager) {
    textViewRef = new WeakReference<TextView>(textView);
    historyManagerRef = new WeakReference<HistoryManager>(historyManager);
    newContents = new ArrayList<Spannable>();
    newHistories = new ArrayList<String[]>();
  } 
 
  @Override 
  public final Object doInBackground(Object... args) {
    try { 
      retrieveSupplementalInfo(); 
    } catch (IOException e) {
      Log.w(TAG, e);
    } 
    return null; 
  } 
 
  @Override 
  protected void onPostExecute(Object arg) {
    TextView textView = textViewRef.get();