[android-developers] Re: Break the execution

2011-09-29 Thread JackN
if (strUserName.equals()) { Toast.makeText(getBaseContext(), Enter User Name., 10).show(); } else return; On Sep 23, 9:38 am, TreKing treking...@gmail.com wrote: On Fri, Sep 23, 2011 at 6:06 AM, Sivaprakash sivaprakashshanmu...@gmail.com wrote: Inside this If condition I

[android-developers] Re: Break the execution

2011-09-29 Thread LiTTle
I don't understand your question very much but I think that you could add break; Could you explain better what do you mean, because someone will read this conversation in the future for help. -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: Break the execution

2011-09-29 Thread Studio LFP
I think they are looking for a simple return. Any time you are inside a function, you can exit that function by a return. All of the Android specific things like onCreate, etc. are functions and can all be exited by a return. Just make sure you return whatever type is needed as a return