Discussion Forums  >  Uncategorized

Replies: 8    Views: 180

dkeds66
Aspiring developer
Profile
Posts: 91
Reg: Jan 18, 2012
Swindon
910
01/29/12 05:18 PM (14 years ago)

Images embedded in HTML not showing on Emulator

Hi guys......quick question. I have been writing a bunch of HTML for my data capture forms without any issues, however I have hit a problem with regard to using images inside my HTML forms. I have done everything I should in terms of making sure the image file is also added to the BT_Images folder in my project (and I can see that the image is in the BT_Images folder within Eclipse. I think the problem may be what I am adding (or not adding) into my HTML .... using this basic example, I have tried <html> <body> <img border=0 src=ukflag.png width=75 height=45 /> </body> </html> also tried ... <html> <body> <img border=0 src=/BT_Images/ukflag.png width=75 height=45 /> </body> </html> and even tried full path ... src=/projectname/assets/BT_Images/ukflag.png but nothing is working Any ideas please - cheers D
 
KevinPerry
Android Fan
Profile
Posts: 199
Reg: Jan 10, 2012
Wisconsin, USA
12,890
like
01/29/12 06:39 PM (14 years ago)
possibly the beginning / as from what I understand, the BT_Images is a subfolder of [ / ] which means it would not need the first / With the / before the path, tells it to go to the very top, then down from there via what is given. Without the first / it tells it that the folder name is a subfolder of the current folder. It is not where it is seen as before exporting, it is where it will be after, I THINK So src=BT_Images/ukflag.png I am not positive on this but think it would be correct, not sure on actual path, except no / before it hope it helps and works
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
01/29/12 07:19 PM (14 years ago)
http://wp.me/p1ZRa7-98 To understand how to do it use the Buzztouch Method as documented in MySkylla Blog. Enjoy Fred
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
01/29/12 07:24 PM (14 years ago)
Perhaps you'll show me how to do data capture form. Fred
 
KevinPerry
Android Fan
Profile
Posts: 199
Reg: Jan 10, 2012
Wisconsin, USA
12,890
like
01/29/12 07:49 PM (14 years ago)
I would like to second Fred. I would like to know the data capture also, form fields saved, is what I am looking for. My post was strictly an html/linux based answer.
 
dkeds66
Aspiring developer
Profile
Posts: 91
Reg: Jan 18, 2012
Swindon
910
like
01/30/12 10:14 AM (14 years ago)
Fred - sure will pass on what I can - building the data capture form in HTML and then adding via BT is a piece of cake, its the build DB's and tables bit thats a little hairy. I have read a great article on building both for Android and in theory I have (in a dummy project) - I just need to understand the logic for updating / deleting / selecting from tables using html (using and I am guessing - PHP scripts)
 
KevinPerry
Android Fan
Profile
Posts: 199
Reg: Jan 10, 2012
Wisconsin, USA
12,890
like
01/30/12 11:07 AM (14 years ago)
Could you please post a link to this article. Thanks
 
dkeds66
Aspiring developer
Profile
Posts: 91
Reg: Jan 18, 2012
Swindon
910
like
01/30/12 12:46 PM (14 years ago)
Here's the article I found on Creating and Using Databases in Android. http://www.devx.com/wireless/Article/40842/1954
 
KevinPerry
Android Fan
Profile
Posts: 199
Reg: Jan 10, 2012
Wisconsin, USA
12,890
like
01/30/12 01:00 PM (14 years ago)
Thank you, now I have some interesting reading for the night :-)
 

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.