AlertDialog didn't appear (was in background)
<p>I attempted to show an AlertDialog for my phone application using the code below. While my application ran to the entry point, the AlertDialog did not show up for user. </p>

<p>The phone screen changed to a dark color was locked. However, I can press phone's <strong>Back</strong> button to let the application go to next step like the behavior of <strong>Cancel</strong> function pressed. </p>

<p>The AlertDialog seems hidden in the application background. I would like to call it to foreground. </p>

<p>How to do it ? </p>

<p>By the way, there was no error message shown on the LogCat.</p>

<p>Could somebody point me out where I was wrong or what other information I can provide?</p>

<p>Thanks !</p>

<pre><code>AlertDialog.Builder builder1 = new AlertDialog.Builder(Mainx.this);
builder1.setTitle(getResources().getString(R.string.str_sel_player));
LayoutInflater inflater = LayoutInflater.from(this);
View functionListView = inflater.inflate(R.layout.dialog_pickitem_action,null); 
builder1.setView(functionListView);   
mlistView = (ListView) functionListView.findViewById(R.id.m_functions_listview); 
mlistView.setAdapter(new ArrayAdapter&lt;String&gt;(this,                 
    android.R.layout.simple_list_item_1, mPlayers)); 
selDialog = builder1.create();
selDialog.show();
</code></pre>
