Tooly
Aspiring developer
Profile
Posts: 24
Reg: Jun 29, 2012
Omaha, NE
8,390
03/11/13 02:56 PM (12 years ago)

Getting a headerImageContainer Error Message

Hello everyone, after finishing the Xcode version of my app I'm tackling the Android version now. Usually I've been able find answers to my roadblocks by people who have already asked but I'm a little stuck on this one. I'm thinking it's an easy fix but I want to do it right. Anyway I'm getting this error message: headerImageContainer cannot be resolved or is not a field Code line that comes up is: LinearLayout headerImageContainer = (LinearLayout) thisScreensView.findViewById(R.id.headerImageContainer); headerImageView = (ImageView) thisScreensView.findViewById(R.id.headerImageView); I'm still pretty new at all this so any help is much appreciated.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/11/13 03:43 PM (12 years ago)
Hi @Tooly, Is this a Self hosted app or one you downloaded from your buzztouch.com control panel? Is it a red X in the project or a yellow warning. Does the app run in the Emulator? Keep us posted:) And thanks for supporting Buzztouch!
 
Tooly
Aspiring developer
Profile
Posts: 24
Reg: Jun 29, 2012
Omaha, NE
8,390
like
03/11/13 03:56 PM (12 years ago)
It's a self hosted app and I'm getting a red X. Right now I'm just following the Buzztouch Android PDF Guide so I haven't tried it in the Emulator yet.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/11/13 04:09 PM (12 years ago)
Ok red X. Sounds like it can't find a resource named "headerImageView" Have you tried cleaning the project then running again? Also, make sure your plugins are updated in your Self-hosted control panel Report back:)
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
03/11/13 04:30 PM (12 years ago)
Yep, it could have to do with the recent conversion to the Google API 11, as opposed to the previous Google API 8. If you've downloaded your source since March 3rd, right-click on your project, click Properties > Android, and then select Google API 11 (you may have to download it in the SDK manager first). Mark
 
Tooly
Aspiring developer
Profile
Posts: 24
Reg: Jun 29, 2012
Omaha, NE
8,390
like
03/11/13 04:32 PM (12 years ago)
Thanks guys I'll try these out. Got some things to do now so I'll work on it later tonight and let you know.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/11/13 04:35 PM (12 years ago)
Good eye Mark!
 
Tooly
Aspiring developer
Profile
Posts: 24
Reg: Jun 29, 2012
Omaha, NE
8,390
like
03/11/13 10:46 PM (12 years ago)
Thanks guys I'll try these out. Got some things to do now so I'll work on it later tonight and let you know.
 
Tooly
Aspiring developer
Profile
Posts: 24
Reg: Jun 29, 2012
Omaha, NE
8,390
like
03/11/13 11:14 PM (12 years ago)
Unfortunately I'm still getting the error message. If it helps this is a screen shot of what I'm getting. http://www.universaldesignstyle.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-12-at-12.57.45-AM.png
 
Tooly
Aspiring developer
Profile
Posts: 24
Reg: Jun 29, 2012
Omaha, NE
8,390
like
03/11/13 11:14 PM (12 years ago)
Unfortunately I'm still getting the error message. If it helps this is a screen shot of what I'm getting. http://www.universaldesignstyle.com/wp-content/uploads/2013/03/Screen-Shot-2013-03-12-at-12.57.45-AM.png
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/11/13 11:41 PM (12 years ago)
Hi Tooly, See if you have the Menu Simple Plugin added to your project. Meaning you have the Menu Simple Plugin added to your list of plugins in your control panel so it is also included when you download your source code. It looks like it is calling this resource from the .xml file of the Simple Menu even though you are using the Menu With Header Image Plugin. Let me know how it goes or if you need a better explanation. ian
 
Tooly
Aspiring developer
Profile
Posts: 24
Reg: Jun 29, 2012
Omaha, NE
8,390
like
03/12/13 12:09 AM (12 years ago)
The only plugins I'm using are Menu with Image, Custom HTML / Text, and Custom URL.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/12/13 12:16 AM (12 years ago)
In your Android project do you see a file in you Res > Layout folder called screen_menulistsimple.xml ? That looks like the file that is holding the R. (resource) that is causing the red X error.
 
Tooly
Aspiring developer
Profile
Posts: 24
Reg: Jun 29, 2012
Omaha, NE
8,390
like
03/12/13 09:51 AM (12 years ago)
There's no screen_menulistsimple.xml layout folder. Don't know if this matters but when when I compile the Android package none of my images are in the folder for the Menu with Images plugin, unlike when I compiled for Xcode.
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/12/13 10:12 AM (12 years ago)
So in your long list of .xml files (in the Layout folder) there is no file called screen_menulistsimple.xml. If that's the case add the Simple Menu plugin to your control panel and redownload the source code. See what you get
 
Tooly
Aspiring developer
Profile
Posts: 24
Reg: Jun 29, 2012
Omaha, NE
8,390
like
03/12/13 10:29 AM (12 years ago)
That did it, no more errors! Thank you so much!
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
03/12/13 10:36 AM (12 years ago)
sweet! Love your determination. ian
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.