title: How to declare ArrayList in android?
body: <p>I want to declare arrayList into this line:<br/></p>
  
  <pre><code>public class tlcity extends Activity {
  
      //ArrayList&lt;String&gt; idArray = null;
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          ....
  </code></pre>
  
  <p><br/>
  and into the other method,for example this method:<br/></p>
  
  <pre><code> protected void onPostExecute(String result) {
  
            //fill the arraylist
            ...
  </code></pre>
  
  <p><br/>
  and into the other method for example this method read arraylist data:<br/></p>
  
  <pre><code>public void readlist(){
     //read the arraylist data and show
  }
  </code></pre>
  
  <p><br/>
  How can i do this?</p>