title: Stringbuilder not working properly
body: <p>I have a weird problem. Here's the code:</p>
  
  <pre><code>public class TaxiDetails extends Activity{
  
  ArrayList&lt;Bus&gt; listBus = new ArrayList&lt;Bus&gt;();
  ArrayList&lt;Taxi&gt; listTaxi = new ArrayList&lt;Taxi&gt;();
  TextView detalji, title;
  ImageView backBtn;
  String strType;
  StringBuilder builder = new StringBuilder();
  
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      requestWindowFeature(Window.FEATURE_NO_TITLE);  
      setContentView(R.layout.numbers_details);
      detalji = (TextView) findViewById(R.id.txtNumbDetails);
      title = (TextView) findViewById(R.id.txtTitleNumbers);
      detalji.setTypeface(Typeface.DEFAULT_BOLD);
      Typeface TF = Typeface.createFromAsset(getAssets(), "fonts/Roboto-Black.ttf");
      backBtn = (ImageView) findViewById(R.id.backBtn);
      title.setTypeface(TF);
  
      Intent in = getIntent();
      strType = in.getStringExtra("type");
  
      if  (strType.equals("TAXI")){
          listTaxi = (ArrayList&lt;Taxi&gt;) in.getSerializableExtra("TAXI");
          title.setText("Taxi");
      } else if (strType.equals("BUS")){
          listBus = (ArrayList&lt;Bus&gt;) in.getSerializableExtra("BUS");
          title.setText("BUS");
      }   
  
      if (listBus != null) {
          for (int i = 0; i &lt; listBus.size(); i++) {
              builder = new StringBuilder();
              String naslov = listBus.get(i).getTitle();
              String opis = listBus.get(i).getDescription();
              builder.append(naslov);
              builder.append("\n");
              builder.append(Html.fromHtml(opis));
              builder.append("\n");
          }
      }
  
      if (listTaxi != null) {
          for (int i = 0; i &lt; listTaxi.size(); i++) {
              builder = new StringBuilder();
              String naslov = listTaxi.get(i).getTitle();
              String opis = listTaxi.get(i).getDescription();
              builder.append(naslov);
              builder.append("\n");
              builder.append(Html.fromHtml(opis));
              builder.append("\n");
          }
      }
  
      detalji.setText(builder.toString().trim());
  }
  }
  </code></pre>
  
  <p>I pass an array from previous activity. Either an array of Taxi or Bus objects, depending on which the user chooses. However, for Taxis, this works perfectly. For Bus, it only shows the last object of the array even though debugger shows that listBus contains 2 objects. I use the same listBus iN Google Map activity and there it works to display the location of all objects, so why doesn't it work here?</p>