Android Activities and sub-Activities
<p><br>
I am new in Java and Android and now I have a follow problem.
I want to pass String[] str variabe from one activity to another and show list of my string.<br>
I have read <a href="http://developer.android.com/resources/tutorials/views/hello-listview.html" rel="nofollow">http://developer.android.com/resources/tutorials/views/hello-listview.html</a> tutorial .
I have DataTest extends Activity class.</p>

<pre><code>Intent myIntent = new Intent(DataTest.this, MyListAdapter.class);    
myIntent.putExtra("response", str);  
startActivity(myIntent);
</code></pre>

<p>When I want to open  MyListAdapter extends ListActivity activity,I get an exception. </p>

<p>Therefore  I create  MyListAdapter extends Activity activity class and declare there  </p>

<pre><code>ListActivity l = new ListActivity();    
object.   
if(extras !=null)
     {
       String[] str = extras.getStringArray("response");
     }  
</code></pre>

<p>But here I get error.                               </p>

<pre><code>l.setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.list_item, str));
</code></pre>

<p>Where do I mistake ???</p>
