Hi

How can I stop the execution at one point? For Example

if (strUserName.equals(""))
    {
    Toast.makeText(getBaseContext(), "Enter User Name.", 10).show();

    }

Inside this If condition I want to stop the execution and dont let the
system to execute rest of the code which I have in bottom. At the same time
I want to stay on the same Activity.
One thing I can throw exception and do other than that is there any way?

-- 
- Prakash.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to