On Tue, Jun 15, 2010 at 4:32 AM, florence jeulin <[email protected]> wrote: > I'm working on an application where I want to add adWhirl to manage > adds. > The app is working fine until I tryed to use adWhirl. I have try to > get the view created with setContentView(R.layout.main) by calling > LinearLayout layout = (LinearLayout)findViewById(R.layout.main);
Because you cannot use findViewById(R.layout.main). findViewById() uses R.id values. You need to associate an android:id with any widget you expect to load via findViewById(), and use the R.id equivalent of that ID value. -- Mark Murphy CommonsWare [email protected] http://commonsware.com -- 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

