trhunter
Aspiring developer
Profile
Posts: 30
Reg: Aug 14, 2012
Canton
6,600
09/24/12 10:57 PM (13 years ago)

No image on home screen

I have been trying to use a screen background image on the menu button screen. I have included the image in the res/drawable file. It does not show up in the emulator when I run the project. I also tried to omit the image and change the color of the screen, and the only thing that comes up in the emulator is a black screen with the navigation bar title and a Call Us plugin I installed. When I run the app, I get a message that the app's content has changed asking would I like to refresh. When I refresh, this is the message I get: Something’s not right. There was a problem in loading the app’s configuration data. See the LogCat(console)output in Eclipse. I don't see anything wrong in the configuration file, and I'm not seeing any problem listed in the LogCat output. I'm copying the LogCat output here: [2012-09-25 01:32:48 - com.benheggy.BT_activity_root] Performing com.benheggy.BT_activity_root activity launch [2012-09-25 01:32:48 - com.benheggy.BT_activity_root] Automatic Target Mode: using existing emulator 'emulator-5554' running compatible AVD 'Heggys' [2012-09-25 01:32:48 - com.benheggy.BT_activity_root] Uploading com.benheggy.BT_activity_root.apk onto device 'emulator-5554' [2012-09-25 01:32:52 - com.benheggy.BT_activity_root] Installing com.benheggy.BT_activity_root.apk... [2012-09-25 01:32:59 - com.benheggy.BT_activity_root] Success! [2012-09-25 01:32:59 - com.benheggy.BT_activity_root] Starting activity com.benheggy.BT_activity_root on device emulator-5554 [2012-09-25 01:33:01 - com.benheggy.BT_activity_root] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.benheggy/.BT_activity_root } This is obviously an android app, BT 2.0. Any ideas about what's happening or what I'm missing? Thanks. Mike
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/24/12 11:25 PM (13 years ago)
Hi Mike, This could be any number of things. Unfortunately, what you posted I believe is from the Console, and not the LogCat view. If you need to add that view to Eclipse, here's a video that shows you how: http://www.youtube.com/watch?v=ckpjn7x_Eas That being said, is it possible your background image doesn't follow the a-z0-9 naming convention that Android requires? That means no caps, no special characters, no spaces. If that's all good, then we need to wait to see LogCat output to understand what's going on. Thanks! Mark
 
trhunter
Aspiring developer
Profile
Posts: 30
Reg: Aug 14, 2012
Canton
6,600
like
09/24/12 11:52 PM (13 years ago)
Thanks, Mark. I was just aware myself that I posted the Console view--sorry. I have checked the naming convention; the image is named bt_homescreen.jpg, so I think I'm okay there. I've read about dropbox in the forum, and I don't have one. I'm also not sure how to select, cut and paste and/or get a screen shot of the whole LogCat view. If you can give me a heads up on that, I'll get the next bit of information posted. Mike
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/24/12 11:56 PM (13 years ago)
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
09/25/12 02:05 AM (13 years ago)
I think you are using a non-tabbed layout for your app. In this case go to the control panel of your project and click Layout/Tabs---> Non-Tabbed Layout---> and in there set the screen name to the one you want to set as home screen. I hope this should solve your problem.
 
trhunter
Aspiring developer
Profile
Posts: 30
Reg: Aug 14, 2012
Canton
6,600
like
09/25/12 04:06 PM (13 years ago)
Mark, I was half asleep when I sent you the file location at 3:00 AM. I reversed part of the end of the file location. It should have been /LogCatInfo.php instead of /CatLogInfo.php. Thanks for your offer to take a look at the file. Mike
 
trhunter
Aspiring developer
Profile
Posts: 30
Reg: Aug 14, 2012
Canton
6,600
like
09/25/12 08:41 PM (13 years ago)
Thanks for the thought, Sandeep, but I have set the screen name to the one I want to set as the home screen. Something else is going on.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/25/12 08:47 PM (13 years ago)
Wow...that file is hard to read without line breaks! Anyway to put some there? Also...if you could send me your BT_Config.txt file, I can see what might be up from a config perspective. MrkFleming at gmail dot com. Mark
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/25/12 10:55 PM (13 years ago)
Checked out his config file, no backgroundImageNameSmallDevice or backgroundImageNameLargeDevice is showing up in JSON. Working with him to resolve this! Mark
 
trhunter
Aspiring developer
Profile
Posts: 30
Reg: Aug 14, 2012
Canton
6,600
like
09/26/12 04:53 PM (13 years ago)
Mark, Thanks for your detective work. Here is what I did. I deleted the Android folder from Eclipse, added the background image to the menu button screen in BT, downloaded the source code, imported it to Eclipse, added my bt_background.jpg image and another image and ran the emulator. Voila. Background image! I honestly don't know why a background image wasn't previously appearing in JSON. I checked the screen background image on the menu button screen several times and the image came up and saved there. It is really a mystery to me, and I wish I know why the image wasn't displaying before and now it is displaying in the emulator. Obviously, because it wasn't in the BT_config file, but I don't know why it didn't get added to JSON when it was saved on the BT menu button screen. Anyway, I really appreciate your help. You've also taught me a way to track down possible problems I may have in the future. Thanks a lot. Mike
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/26/12 07:04 PM (13 years ago)
Sweet! Glad we both learned something. Rock on! Mark
 

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.