R.id.myListView refers to an XML tag in your layout. Do you have something called "myListView" in your res/layout/ main.xml ?
It would look something like this: <ListView android:id="@+id/myListView" android:layout_width="wrap_content" android:layout_height="wrap_content"> </ListView> Eclipse generates some source code for us, in this case something like: gen/...<your package name>.../R.java public final class R { public static final class id { public static final int myListView=0x7f050000; } } > ListView myListView = (ListView)findViewById(R.id.myListView); > is giving an error :"R.id cannot be resolved". -- 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.