If you override a function with ctrl+space (or by going into menus),
the @Override will automatically be added, and you "can't" mispell the
name with auto-completion...

On Sep 30, 3:44 pm, Guillaume Perrot <[EMAIL PROTECTED]> wrote:
> The @Override annotation is useful in your case because you will have
> a compile time error if you mispelled the function name.
>
> On Sep 29, 5:48 pm, Dipen <[EMAIL PROTECTED]> wrote:
>
> > Thanks Mark.
>
> > yes, it was spelling error. Also, i was not calling show() on Toast. I
> > am little bit surprise eclipse did not catch it. Logcat did not report
> > any error so, I was constantly paying attention to the logic than
> > spellings.
>
> > Thanks again.
>
> > On Sep 29, 11:19 am, Mark Murphy <[EMAIL PROTECTED]> wrote:
>
> > > Dipen wrote:
> > > >     public boolean onCreatgeOptionsMenu(Menu menu)
>
> > > You do not have onCreateOptionsMenu spelled correctly above.
>
> > > >     public boolean onOptionsItenSelected(MenuItem item)
>
> > > You do not have onOptionsItemSelected spelled correctly above.
>
> > > I do not know if those are real problems or merely something in how you
> > > pasted the code into the email message, though.
>
> > > --
> > > Mark Murphy (a Commons Guy)http://commonsware.com
>
> > > Android Training on the Ranch! -- Mar 16-20, 
> > > 2009http://www.bignerdranch.com/schedule.shtml
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to