Android: long click on a button -> perform actions
<p>I want to use the same button to perform 2 different methods.
One method when user single clicks it and a second method (different) when the user LONG clicks it.</p>

<p>I use this for the single short click (which works great):</p>

<pre><code>Button downSelected = (Button) findViewById(R.id.downSelected);
        downSelected.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                method();
                }
            }

        });
</code></pre>

<p>I've tried to add a longClickListener but it didn't work.</p>

<p>Appreciate any ideas on how to solve this.</p>

<p>Thanks!</p>
