Hi Justin, Thanks for your response. I m sorry maybe I m not very clear with some of the steps I should take. I followed this tutorial(http:// www.youtube.com/watch?v=6UYNnQOxCS8) and in the first 2 minutes they declare the way I declared here. Although I know this is a very basic problem, but in case your time permits some more help will be very kind of you. Thank you
On Jun 25, 4:05 pm, Justin Anderson <janderson....@gmail.com> wrote: > I meant when you have them in the same switch statement... > > ---------------------------------------------------------------------- > There are only 10 types of people in the world... > Those who know binary and those who don't. > ---------------------------------------------------------------------- > > On Fri, Jun 25, 2010 at 5:04 PM, Justin Anderson > <janderson....@gmail.com>wrote: > > > *> Does any one knows what are some > > of the things I could do to avoid these errors please?* > > > Yes... don't have duplicate case values. Your problem lies with this line: > > > public static final int INSERT_ID = Menu.FIRST; > > > So when you include INSERT_ID and Menu.FIRST in the same case statement > > they have the same value. > > > ---------------------------------------------------------------------- > > There are only 10 types of people in the world... > > Those who know binary and those who don't. > > ---------------------------------------------------------------------- > > > On Fri, Jun 25, 2010 at 4:38 PM, Varun Khanduja > > <varunkhand...@gmail.com>wrote: > > >> INSERT_ID > > -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en