What is wrong with my onResume method?
<pre><code>@Override
protected void onResume() {
    super.onResume();
    show = (ListView)findViewById(R.id.listView);

    Intent intent = getIntent();
    String Title = intent.getExtras().getString("name");
    addArray.add(Title);
    ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;&gt;(MainActivity.this, android.R.layout.simple_list_item_1, addArray);
    show.setAdapter(adapter); 
}
</code></pre>

<p>My app keeps crashing because something is wrong with my <code>onResume()</code> method. Am I not allowed to use <code>getIntent()</code> when trying to create a <code>ListView</code> using the <code>ArrayAdapter</code>?</p>