The problem of my app is that in the onCreate() method I have some
"cannot be resolved or is not a field" errors.
Lines where I have the problem are:
setContentView(R.layout.main); //problem on main
AutoCompleteTextView textStationFrom = (AutoCompleteTextView)
findViewById(R.id.stationfrom);// problem on stationfrom
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,
R.layout.list_item, STATIONS); //problem on list_item
AutoCompleteTextView textStationTo = (AutoCompleteTextView)
findViewById(R.id.stationto); //problem on stationto
mPickDate = (EditText) findViewById(R.id.pickdate); //problem on
pickdate
mPickTime = (EditText) findViewById(R.id.picktime); //problem on
picktime
Inside R.java class I have
public static final class id {
public static final int pickdate=0x7f050003;
public static final int picktime=0x7f050005;
public static final int stationfrom=0x7f050000;
public static final int stationto=0x7f050002;
/**** other ids ****/
}
public static final class layout {
public static final int list_item=0x7f030000;
public static final int main=0x7f030001;
}
And of course inside the layout folder I have both main.xml and
list_item.xml, all the resources have lower case names.
What's the problem?
--
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