Discussion Forums  >  Self Hosted Control Panels

Replies: 14    Views: 323

ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
06/04/12 03:53 PM (11 years ago)

Background images on Menu List Android screens

Hi All, I have a BT 2 self hosted server running. I'm in the proces of developing an Android app but I can't get the background images to work on the Menu List screen? I can confirm that the image is in the build because I added it to an image gallery and it worked. I found a couple of other threads on this, of others having a similar problem. Anyone solved it yet?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/04/12 04:03 PM (11 years ago)
Where did you place the image?
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
06/04/12 04:05 PM (11 years ago)
Good question Fred, It's in /res/drawable
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/04/12 04:23 PM (11 years ago)
That's correct for BTv2.0. Have you updated the Config file? Fred
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
06/04/12 05:59 PM (11 years ago)
In the BT_config.txt file there is a reference to how the image should be placed but not the image file itself. Do I need to manually add an entry for the image? Do you know the exact property? The json from the config data looks like this: "itemType":"BT_screen_menuListSimple", "itemNickname":"JB_home", "navBarTitleText":"Epsom", "backgroundColor":"#C72931", "backgroundImageScale":"bottom", "listBackgroundColor":"#FFFFFF"
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/04/12 06:13 PM (11 years ago)
You must enter image name in advance properties for the screen. That entry will be entered into the JSON data. Fred
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
06/04/12 06:39 PM (11 years ago)
Yes Fred, I have included it in the advanced properties. The image file entry is in the json data (see below) but it doesn't appear in the android app. The config above didn't have it because I was trying different things last night and must have removed it. "itemId":"3A1029AE097814ACC4367CD", "itemType":"BT_screen_menuListSimple", "itemNickname":"JB_home", "navBarTitleText":"Epsom", "backgroundColor":"#C72931", "backgroundImageNameSmallDevice":"epsom_front_header.png", "backgroundImageScale":"bottom", "listBackgroundColor":"#FFFFFF", "listRowBackgroundColor":"#FFFFFF", "listTitleFontColor":"#C72931", Any other ideas? Thanks
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/04/12 06:52 PM (11 years ago)
Are you using a tablet? Or large device? Is your device using a cached config file? If so update app data.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
06/04/12 06:57 PM (11 years ago)
I am using the Android Simulator. So I assume it is using the data from BT_config.txt which I copied from the BT control panel. At any rate it updateseach time I make a config change in the control panel. I do a project clean in eclipse and then re-build if I have added new images etc.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
06/04/12 07:07 PM (11 years ago)
So I assume it is using the data from BT_config.txt Only when you first launch it. time I make a config change in the control panel. It's using a cached copy. When it refreshes it pull the data from the control panel and caches the data. What's the image name? Take it from the actual image file name, I know what you typed into the Control Panel, that's displayed in the JSON data. Fred
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
06/05/12 04:27 AM (11 years ago)
I've copied the file name from the eclipse project and added it to the advanced properties in the control panel The file name "epsom_front_header.png" is in the BT_config.txt file. I copied the config data from the control panel. It just doesn't show on the simulator. The image works when added to an image gallery so I assume the file name and type is fine. BTW I have tried using a jpg image and the same result. Any other thoughts? Keep them coming :) because I think it could be a BT bug ... See others have this issue too ... http://www.buzztouch.com/forum/thread.php?tid=6CEF05BDCB28FE8271014CC&command=isSearching&currentPage=1&topicTitle=menu%20background&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory=
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
10/01/12 03:57 PM (11 years ago)
Say, was this issue ever resolved? I am having this same problem with Android. The background images appear in iOS, but not in Android on Menu Simple. The backgrounds do appear in the Menu Buttons.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
10/01/12 04:32 PM (11 years ago)
Hi Susan, I don't think it got resolved. I can't remember for sure but looking at the final app I published it used "buttons" with a background image and not "menu simple" with a background image. So I don't think it been addressed unless a recent update has fixed it? But from what your saying, sounds like it's still in there.
 
Susan Metoxen
buzztouch Evangelist
Profile
Posts: 1706
Reg: May 01, 2011
Hopkins, Minnes...
26,260
like
10/01/12 06:57 PM (11 years ago)
I am going to start a new thread on this. I really don't think it works.
 
ictguy
Aspiring developer
Profile
Posts: 564
Reg: Jun 17, 2011
Mildura, Austra...
15,840
like
10/01/12 07:01 PM (11 years ago)
Yes, I agree button didn't how to fix it :)
 

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.