stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
01/27/13 10:23 AM (12 years ago)

No jpgs and other problems with Eclipse

Have a few IOS apps created by BT (thanks much again) and now want to try to make them into Android apps. Since don't know anything about Android, started by taking old IOS app and had BT compile it for Android. Ran it, after reading and watching excellent GoNorthwest tutorials and go it to run in the Android simulator. Looks lousy so I'll have to get down and dirty and rewrite app with Android simulator running so I can see how it looks. But, there are a few mysteries I found: 1) In simulator, all my screens, which are XML, show only placeholders for the jpgs that are included with the img src method. In Xcode, running the simulators, the images show up, but not in Android. I have placed them all in the BT_Images folder, just as in Xcode. 2) In Android, when I hit the Home button I created for the nav bar on the right, I get a message that Something's Not Right, no screen connected to this. Why is this? 3) There is no left nav bar button, just the name of the screen, which in IOS was centered. All help would be appreciated.
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
01/27/13 10:31 AM (12 years ago)
I know in my 1.5 app with html pages and img source I had to place .html and images contained on those pages under bt_docs to show images. Try placing images in same folder as your xml.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 10:40 AM (12 years ago)
Hey @stevek, Put your images in BT_DOCS then reference them on the html. LA
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/27/13 11:16 AM (12 years ago)
1. In case you refer to images in your html pages that you have put locally in the app, you have to put your images too in the bt_docs folder. In case you are referring to the images other than that like icons and background images then you need to place them in the drawable folder for bt2.0 apps and for bt1.5 apps put those images in bt_images folder. 2. You are getting a message that Something's Not Right, no screen connected to this probably you have not attached any screen to that button. 3. The name will appear left aligned because this is how it works on android. I think you can tweak this by making some custom changes to the bt_activity java file though i am not sure about it since i have never tried it.
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 11:17 AM (12 years ago)
Thanks guys, that seems to have done it. Strange that Xcode doesn't require them in BT_DOCS but Android does! Anyway, any answers on my other two questions? Steve
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 11:19 AM (12 years ago)
Sandeep, I have attached a screen to the home button and it works perfectly in IOS. Just not working in Android.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/27/13 11:23 AM (12 years ago)
Thats strange but i think there might be something missing here. I mostly do not use top right navigation button in my android apps. This is because of bad user experience on android. The button leads you to next screen but when the user clicks the hardware back button, all the screens loop back till the app exits...
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 11:24 AM (12 years ago)
Hey @stevek, Xcode and Eclipse are way different! Can't compare the two. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 11:27 AM (12 years ago)
Sandeep, If you don't use right button how, with Buzztouch, do you go back a screen. I have used left button for back and right for home in all my ios apps. I have to have some way of going back in Android, even if it has to be one page at a time.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
01/27/13 11:29 AM (12 years ago)
Thats the point of difference between android and ios. You dont need a back button in android apps at all. The android devices come with a hardware back button where as iphone do not have any hardware button other that the exit button.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 11:30 AM (12 years ago)
@stevek, When you create the right nav. bar in the control panel and selected home, under that option, you have to select where that screen goes to. If you did do that then sync your config file and do a project clean and refresh. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 11:31 AM (12 years ago)
Sandeep, Oh. I don't have any Android devices so I didn't know that. Thanks.
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 11:40 AM (12 years ago)
Alright I use it and just explained the steps to your problem f you decide to use it. LA
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
01/27/13 12:01 PM (12 years ago)
LA, Thanks very much
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/27/13 12:40 PM (12 years ago)
Your welcome friend. LA
 

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.