Error while starting Activity from onLongclickListener
<p>i am starting my activity from onlongclicklistener of Imageview but when i pressed the imageview long application stop working </p>

<p>here is my code</p>

<pre><code>    img1.setOnLongClickListener(new OnLongClickListener() {
        public boolean onLongClick(View v1) {
            if(vibration){
            v.vibrate(300);
            }
            Intent intent=new Intent(MainActivity.this,settings.class);
            startActivity(intent);
            finish();
        return false;
        }
</code></pre>

<p>here is my log</p>

<p><img src="http://i.stack.imgur.com/Ngv03.png" alt="Log"></p>

<p>please help</p>
