title: Items are not populated in the list view
body: <p>This is layout xml</p>
  
  <pre><code>           &lt;ListView
                      android:id="@+id/titleListView"
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent" &gt;
                  &lt;/ListView&gt;
  </code></pre>
  
  <p>My activity is:</p>
  
  <pre><code>public class DummyActivity extends Activity {
  
  private ListView titleListView;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_assignment);
  
      titleListView=(ListView)findViewById(R.id.titleListView);
  
      showAssignmentTitlesInList();
  }
  
  
  
  private void showAssignmentTitlesInList()
  {
  
      String[] monthsArray = { "JAN", "FEB", "MAR", "APR", "MAY", "JUNE", "JULY",
               "AUG", "SEPT", "OCT", "NOV", "DEC" };
  
      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(DummyActivity.this,
                  android.R.layout.simple_list_item_1 ,monthsArray);
              titleListView.setAdapter(adapter);
              Log.d("TAG", monthsArray.length+"");
  }
  }
  </code></pre>
  
  <p>This is my array Array adapter code...</p>
  
  <p>I have one array of string called "Months array" and i need to show this as a list view.</p>