Can you show us the contents of R.java. It is in the gen folder.
On Mar 29, 3:17 am, mnavlani <monishanavl...@gmail.com> wrote: > thanks for your reply! > > I used the following code in main.xml: > > <?xml version=”1.0” encoding=”utf-8”?> > <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/ > android” > android:orientation=”vertical” > android:layout_width=”fill_parent” > android:layout_height=”fill_parent”> > <EditText > android:id=...@+id/myEditText” > android:layout_width=”fill_parent” > android:layout_height=”wrap_content” > android:text=”New To Do Item” > /> > <ListView > android:id=...@+id/myListView” > android:layout_width=”fill_parent” > android:layout_height=”wrap_content” > /> > </LinearLayout> > > and, in both the following lines(of the .java file),i get the error > "R.id cannot be resolved": > > ListView myListView = (ListView)findViewById(R.id.myListView); > final EditText myEditText = > (EditText)findViewById(R.id.myEditText); > > please help regarding this! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.