Android Dialog Activity
<p>I need help on following:
When i touch on my mainActivity, it should handle onTouch event and start new activity which is dialog activity. I am not able to do it. Can anyone suggest anything.</p>

<p>I add <code>android:theme="@android:style/Theme.Dialog"</code>.
If i design simple Dialog activity then it works fine but if i am trying to open it on touch event then it's not working.<br>
Any help is appreciated.</p>

<pre><code>public boolean onTouch(View v, MotionEvent event) {
    // TODO Auto-generated method stub
    int action = event.getAction();


    if(action == MotionEvent.ACTION_DOWN) {         
        Intent loginIntent = new Intent(this, Login.class);
        startActivity(loginIntent);
        return true;
    }

    return true;
}
</code></pre>
