Android OnTouchListener recieves 2 events on one click
<p>Hello I have a couple of EditText widgets that I want to change the behaviour of depending on user preferences. The user should be able to change the EditText views so a popup comes forth with a number of alternatives. When the user want to use a list for input I will set an onTouchListener instead. </p>

<p>It is working quite well except that the onTouchListener <strong><em>recieves two events when I click once</em></strong> so two popupdialogs appear. This is the OnTouchListener:</p>

<pre><code> private OnTouchListener mInputListOnTouckListener = new View.OnTouchListener()
 {
        EditText et;
        @Override
        public boolean onTouch(View ve, MotionEvent me)
        {   
            final CharSequence[] items = {"1", "2", "3"};
            et = (EditText)ve;
            AlertDialog.Builder builder = new AlertDialog.Builder(activity);
            builder.setTitle("Pick a number");

            builder.setItems(items, new DialogInterface.OnClickListener()
            {   
                public void onClick( DialogInterface dialogInterface, int item ) 
                {
                    et.setText(items[item]);
                    return;
                }
            });

            builder.create().show();
            return true;
        }
 };
</code></pre>

<p>PS: Yes I want to return true because it prevents the keyboard from showing up.</p>
