You need to import TextView and Button. The errors for the int variables should go away after that.
---------------------------------------------------------------------- There are only 10 types of people in the world... Those who know binary and those who don't. ---------------------------------------------------------------------- On Wed, Dec 9, 2009 at 10:58 PM, LeeGiT <leegi...@gmail.com> wrote: > I am working through the tutorial for Hello Date Picker. I copied the > code for the HelloDatePicker.java file but I keep getting syntax error > on tokens for the 'int'. Here some code... > > package com.example.hellodatepicker; > > import android.app.Activity; > import android.os.Bundle; > import java.util.Calendar; > > private TextView mDateDisplay; <====== Error Here - Syntax error on > these tokens, delete these tokens. > private Button mPickDate; <====== and here > > private int mYear; <====== and here > private int mMonth; <====== and here > private int mDay; <====== and here..... > > static final int DATE_DIALOG_ID = 0; <====== Error Here - Syntax error > on these tokens, AnnotationName expected instead. > > What is going on here? Is seems all the tutorials are based on Android > 1.5 - 1.6.... > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > To post to this group, send email to android-beginners@googlegroups.com > To unsubscribe from this group, send email to > android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com 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