If you are using Eclipse you can do this quickly with the Ctrl+Shift+O
shortcut... It will automatically add missing imports and remove those you
don't need.

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Mon, Dec 14, 2009 at 10:04 AM, Waiter <wai...@iflyez.com> wrote:

> ME TOO.
>
> I'm going through the tutorials one at a time. Very helpful and
> learning as I go.
>
> So, I need to import both the Textview and the Button, (and whatever
> else I'll be using)
>
> import android.widget.TextView;
> import android.widget.Button;
>
> Added this to the imports, worked like a champ.
>
> Thanks
>
> Waiter
>
>
> On Dec 10, 3:59 pm, "Lee $$$" <leegi...@gmail.com> wrote:
> > Nevermind, already figured out what was wrong. As a note to beginners,
> > always double-check that you are importing all the android packages for
> the
> > tutorials. It will save you mountains of time and problems.
> >
> > On Dec 9, 2009 11: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

Reply via email to