android-array list
<p>How i can access ArrayList from one Activity to another and also clear ArrayList value and store &amp; retrieve it to database?</p>

<p>Sample Code:</p>

<pre><code>**Activity 1:**

public static ArrayList&lt;String&gt; arrList =new ArrayList&lt;String&gt;();
arrList.clear();
arrList.add(0,txt_phone1.getText().toString());
arrList.add(1,txt_phone2.getText().toString());
finish();   



**Activity 2:**

dbAdapter.openDataBase();
Cursor c = dbAdapter.selectRecordsFromDB("SELECT * FROM tbProspect where id="+row_id,null);
c.moveToFirst();
            contact_details.arrList.add(c.getString(c.getColumnIndex("Phone1")));
            contact_details.arrList.add(c.getString(c.getColumnIndex("Phone2")));
c.close();dbAdapter.close();
</code></pre>
