Discussion Forums  >  Images, Documents, File Locations

Replies: 22    Views: 168

bernienor
Lost but trying
Profile
Posts: 23
Reg: Dec 01, 2011
Oslo
530
04/30/12 07:46 AM (13 years ago)

images in custom HTML on android - getting a nice little blue ?

Android v1.5 Ive tried jps and pngs tried in BT_Images folder tried res / drawable (as found in docs and other forum posts etc) Refreshing/cleaning the Eclipse project and refreshing the app - without any luck. all meny list icons are beeing shown correctly (resides in BT_Images) as png. But the darn HTML images wont come to life. Here is the HTML; <img alt="" src="ins_fjaermygg_600.png" width="95%" /> also tried <img src="fjaermygg-voksen-600.jpg" width="95%" /> and <img src="BT_Images/fjaermygg-voksen-600.jpg" width="95%" /> Here is a screenshot; http://dl.dropbox.com/u/10647362/emulator-img.png Any ideas what the F Im doing wrong? Best Bernt Currently trying LogCat...
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/30/12 08:21 AM (13 years ago)
Have you tried using an HTML document instead of custom HTML? Still might not work cuz BT v1.5 for Android isn't being worked on as much as BT-server.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/30/12 08:34 AM (13 years ago)
Try putting them in the BT_Images folder and linking like: <img src="file:///android_asset/BT_Images/fjaermygg-voksen-600.jpg" width="95%"/>
 
bernienor
Lost but trying
Profile
Posts: 23
Reg: Dec 01, 2011
Oslo
530
like
04/30/12 08:35 AM (13 years ago)
Thank Ian No I havent. I first started on using 2.0 but as I found out it was lacking support for menu icons (plus some other limitations) I jumped back to 1.5 I cant see how the simple task of showing an img isnt supported in 1.5? I mean if this commmunity is 70.000+ someone must have created a simple HTML page with a static image - rofl :S hoping there is another answer to is that that as I have quite some pages to copy from the ios version which worked flawlessly. /frustrated. Bernt
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/30/12 08:38 AM (13 years ago)
2.0 will have more features actually than 1.5...if you look in the readme.txt file that downloaded with your code it should give u an idea of the screens supported....have you tried calling images from url's?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/30/12 08:43 AM (13 years ago)
@bernienor, is it just the menu with icons that is holding u back on BT-server?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/30/12 08:44 AM (13 years ago)
HTML Android images go in BT_docs folder . For greater understanding read: The Buzztouch Method & Source Code (Android) Found in my Guide. www.MySkylla.com Fred
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/30/12 08:45 AM (13 years ago)
@bernienor, is it just the menu with icons that is holding u back on BT-server?
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/30/12 08:45 AM (13 years ago)
@bernienor, is it just the menu with icons that is holding u back on BT-server? email me if you need help with menu icons for BT-server if this is the only thing holding you back from finishing. [email protected] ps. sorry for the triple posts...what up with that? :)
 
bernienor
Lost but trying
Profile
Posts: 23
Reg: Dec 01, 2011
Oslo
530
like
04/30/12 09:06 AM (13 years ago)
I Fred - Ive tried the BT_Docs folder with no luck. :/ https://myskylla.wordpress.com/2012/01/23/adding-images-to-btv1-5/ Ive even tried copying a standard BT png (0_bt_youarehere.png) into the Docs folder - same thing. (In case there where something wrong with my images) @ Ian; the icons and RSS is holding me back :S the LogCat is also prompts ; BT_fileManager:doesProjectAssetExist: NO assets/BT_Docs/customHTML44BF0EE79ED102E731C8421.html BT_screen_customHTML: file not found in cache or in assets...loading URL from: http://www.buzztouch.com/applications042612/EA8C4F147D6C6242DBB816412/customHTML-44BF0EE79ED102E731C8421.html So it seems to retrive the Custom HTML from web and ergo the local file wont matter anyhow. Or ? (Im a newbie on this matter guys, and trying not to bother you with things I can find in the forums / docs) Bernt
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/30/12 09:12 AM (13 years ago)
Please post how you're trying to link the image. Fred
 
bernienor
Lost but trying
Profile
Posts: 23
Reg: Dec 01, 2011
Oslo
530
like
04/30/12 09:20 AM (13 years ago)
Here is a copy of one of the custom HTML screens. (Ive tried several link methods). Thanks! /humble / frustrated /taking some lemonda <p> <title></title> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> <meta content="width=device-width; initial-scale=1.0; maximum-scale=2.0; user-scalable=1;" name="viewport" /> <style type="text/css"> html{background-color:transparent;height:100%;width:100%;} body{background-color:transparent;font-size:11pt;font-family:helvetica;} img{border:0px;} </style></p> <p style="text-align: center; "> <img alt="" src="ins-stankelbein-600.jpg" width="95%" /></p> <p>  </p> <p> <b>Stankelbein (Daddy long legs) er en skikkelig munnfull for en sulten ørret, og en flott imitasjon å blindfiske med.</b></p> <p>  </p> <p> Alle har sett ett stankelbein og samtidig muligens observert et noe utstødig flyvemønster der de deiser ned i saftglasset, på vannfilmen eller på lampeskjermen.</p> <p>  </p> <p> <label><strong>Habitat:</strong></label> Rennende og stille vann</p> <p> <label><strong>Klekkeperiode:</strong></label> Hele året der det er isfritt</p> <p> <label><strong>Finnes i:</strong></label> Hele Norge</p> <div> <p> <b>&nbsp;</b></p> <p> <b>Utseende</b></p> <p> Karakteristisk utseende. Lange bein, tynn sak med store vinger. Mørk brun / grå.</p> <p> <b>&nbsp;</b></p> <p> <b>Utbredelse</b></p> <p> Finnes i hele landet, lever i fuktige områder.</p> <p>  </p> <p> <b>Klekkemønster</b></p> <p> Flyveperiode er mai og juni</p> <p>  </p> <p> <b>Imitasjoner</b></p> <p> Det er stort sett det voksne individet som gjelder.</p> <p> Flott imitasjon til blindfiske.</p> </div> <p>  </p> <p> <b>Tørrflue</b></p> <p style="text-align: center; "> <img src="stankelbein-600.jpg" width="95%" /></p> <p>  </p>
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/30/12 09:30 AM (13 years ago)
Try using a _ instead of the - . Where did you place the image? What's the image name (take it from the image, not the HTML)? FRED
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
04/30/12 09:39 AM (13 years ago)
Documents set up incorrectly - unless you haven't copied it all? (please excuse the formatting!): <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> <meta content="width=device-width; initial-scale=1.0; maximum-scale=2.0; user-scalable=1;" name="viewport" /> <style type="text/css"> html{background-color:transparent;height:100%;width:100%;} body{background-color:transparent;font-size:11pt;font-family:helvetica;} img{border:0px;} </style> </head> <body> <p style="text-align: center; "> <img alt="" src="ins-stankelbein-600.jpg" width="95%" /></p> <p> </p> <p> <b>Stankelbein (Daddy long legs) er en skikkelig munnfull for en sulten ørret, og en flott imitasjon å blindfiske med.</b></p> <p> </p> <p> Alle har sett ett stankelbein og samtidig muligens observert et noe utstødig flyvemønster der de deiser ned i saftglasset, på vannfilmen eller på lampeskjermen.</p> <p> </p> <p> <label><strong>Habitat:</strong></label> Rennende og stille vann</p> <p> <label><strong>Klekkeperiode:</strong></label> Hele året der det er isfritt</p> <p> <label><strong>Finnes i:</strong></label> Hele Norge</p> <div> <p> <b>&nbsp;</b></p> <p> <b>Utseende</b></p> <p> Karakteristisk utseende. Lange bein, tynn sak med store vinger. Mørk brun / grå.</p> <p> <b>&nbsp;</b></p> <p> <b>Utbredelse</b></p> <p> Finnes i hele landet, lever i fuktige områder.</p> <p> </p> <p> <b>Klekkemønster</b></p> <p> Flyveperiode er mai og juni</p> <p> </p> <p> <b>Imitasjoner</b></p> <p> Det er stort sett det voksne individet som gjelder.</p> <p> Flott imitasjon til blindfiske.</p> </div> <p> </p> <p> <b>Tørrflue</b></p> <p style="text-align: center; "> <img src="stankelbein-600.jpg" width="95%" /></p> </body> </html>
 
bernienor
Lost but trying
Profile
Posts: 23
Reg: Dec 01, 2011
Oslo
530
like
04/30/12 09:48 AM (13 years ago)
Hi Fred Ive tried <img src="ins_fjaermygg_600.png" /> residing in the "BT_Docs" folder and regular "BT_Images" the image name is "ins_fjaermygg_600.png" IVe created a smaller version "ins_fjaermygg_150.png" and put that in the BT_Docs folder. Stil the same blue ? This is Android - BT v1.5 Im gonna try a restart of my MAC so see if that does anything. B
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/30/12 09:51 AM (13 years ago)
@bernienor, do you have rss screens working in btv1.5 already? That screen supported?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/30/12 10:05 AM (13 years ago)
Do you have a Android device ? Fred
 
bernienor
Lost but trying
Profile
Posts: 23
Reg: Dec 01, 2011
Oslo
530
like
04/30/12 10:25 AM (13 years ago)
@ Ian - so far set up on the iOS v1.5 - havent gotten to that part in Android as the HTML issue here arised. @ Fred. Yeah I have a Galaxy S2. Running that as well as the emulator - same issue both places. brb /restarting MAC
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/30/12 10:43 AM (13 years ago)
Try using Custom HTML doc. Take your code and create a HTML doc and place both doc and image in BT_doc folder. Fred
 
bernienor
Lost but trying
Profile
Posts: 23
Reg: Dec 01, 2011
Oslo
530
like
04/30/12 10:57 AM (13 years ago)
Hi Fred, If I make HTML docs and place them into the BT_Docs, it works. So there is a workaround. Also tried using the sample.html and copying that content into a new Custom HTML screen (to see if the formatting was wrong). But same error. So something wrong isnt right ;) Thanks for the help guys - hopefully this is sorted out from BT soon. (I also tested a V2 and its the same issue there). Best regards Bernt
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
04/30/12 11:05 AM (13 years ago)
Images: If you enter HTML in the online editor that includes images, you'll need to include the image files in the project. You'll also need to make sure the image tags in the HTML use the appropriate src attribute. The src attribute includes only the image file name, like this: src='myimage.png' Alternatively, you could use fully qualified URL's for image src attributes like this: src='http://www.mydomain.com/myimage.png' From plugin info. Maybe the width attribute is throwing it off? Try with only src= .
 
ianJamesPiano
Code is Art
Profile
Posts: 2661
Reg: Feb 13, 2011
Palm Springs, C...
37,010
like
04/30/12 11:37 AM (13 years ago)
@bernienor, have u confirmed RSS is working tho on Android v1.5? Is that screen even finished and working?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
04/30/12 11:45 AM (13 years ago)
The BTv1.5 Android RSS screen is not functional, use RSSinclude or other. Fred
 

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.