title: ArrayAdapter in ListView
body: <p>I have this below code and this <code>ListActivity</code> does not work , all things I know that I'm sure problem comes from my array, when I use from arrays with this format <code>String aaaa = {"...","somthing"};</code> It works! But I need to use a format like my code shows 
   what is wrong ?</p>
  
  <pre><code>public class ff extends ListActivity {
  
  private String[] aaaa;
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
  
      super.onCreate(savedInstanceState);
      setContentView(R.layout.favorite_test);
      setListAdapter(new AA());
  
      aaaa = new String[10];
      for (int i = 0; i &lt; 10; i++) {
  
          aaaa[i] = "string" + i;
      }
  
  }
  
  
  @Override
  protected void onListItemClick(ListView l, View v, int position, long id) {
  
      Intent myIntent = new Intent(ff.this, TestActivity.class);
      startActivity(myIntent);
  }
  
  
  class AA extends ArrayAdapter&lt;String&gt; {
  
      public AA() {
  
          super(ff.this, R.layout.games_list_layout, aaaa);
  
      }
  
  
      @Override
      public View getView(int position, View convertView, ViewGroup parent) {
  
          View row = convertView;
          if (row == null) {
              LayoutInflater inflater = getLayoutInflater();
              row = inflater.inflate(R.layout.games_list_layout, parent, false);
          }
  
          return row;
  
      }
  }
  
  }
  </code></pre>