You presumably do not have a res/layout/main.xml file in your project. Either that, or Eclipse is having problems otherwise processing your resources -- check your console for errors.
On Wed, Jul 14, 2010 at 5:29 PM, Raul Martinez <[email protected]> wrote: > > > public class home extends Activity { > /** Called when the activity is first created. */ > �...@override > public void onCreate(Bundle icicle) { > super.onCreate(icicle); > setContentView(R.layout.main); > > Button word=(Button)findViewById(R.id.button1); > } > } > i have this code but eclipse keeps telling me R.layout.main cannot be > resolved, any ideas what might be wrong? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

