Discussion Forums  >  Uncategorized

Replies: 4    Views: 446

stapi
Lost but trying
Profile
Posts: 7
Reg: Feb 13, 2011
Birmingham, UK
2,220
04/06/11 09:34 AM (14 years ago)

Android offline html pictures and 'read-more' text

Hello, I am new to buzztouch (great job by the way!!) and having trouble with my application (forced to use 1.4 as the app is for Android). I want to create a set of screens that will have some intro text, a picture and a 'read more' link to full article. I have used Custom HTML with a photo and 'read more' html file hosted on my server but i would like them to be actually included in the application rather than being downloaded from the internet. Is there any way of including them in the project so that they are available offline? at the moment its simply: <body> <img src=http://example.com/sample.jpg> <p>intro text</p> <a href=http://example.com/sample.html>read more</a> </body> Is there a way to get the same result without the need to be online? Thanks a lot in advance, mike
 
stapi
Lost but trying
Profile
Posts: 7
Reg: Feb 13, 2011
Birmingham, UK
2,220
like
04/06/11 09:37 AM (14 years ago)
Didnt realise that html will not be visible :) // body // img src=http://example.com/sample.jpg // intro text // a href=http://example.com/sample.html read more /a // /body
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
04/06/11 11:18 PM (14 years ago)
Hi in Birmingham. Unfortunately not with v1.4. We're working hard on v1.5 for Android but it's not available yet. We have not release date scheduled for v1.5 for Android (adding this so you don't have to ask ;-) Have you done any digging around online to try to get this working? I'm asking because it doesn't sound terribly difficult. Maybe do a Google Search to see how to load 'embedded hmtl' or 'local html.' Probably a matter of dragging the HTML into the project, the images in to the drawable directory, then setting a different 'home screen' (Android calls screens Activities) in the manifest.xml
 
icedbreeze
I hate code!
Profile
Posts: 123
Reg: Nov 09, 2010
London
1,230
like
04/07/11 04:40 AM (14 years ago)
I do a similar task in my custom HTML pages, If its helpful Ive posted the HTML code I use, It basically allows you to open and close as much info as you need on a single page. You will just have to change where the text goes and obviously the font, colour etc... and replace '%' with the correct '<' and '>' ... (Not sure how to paste HTML properly :/ ) %div onclick=openClose('a1') style=cursor:hand; cursor:pointer%%span class=White%%font face=Arial, Helvetica, sans-serif%*YOUR TEXT GOES HERE*%em class=hmmok% ****(Click for More)****%/em%%%/font%%/span%%/div% %p% %/p% %div id=a1 class=texter% %font face=Arial, Helvetica, sans-serif% %p% %/p%%p%*** AND THE REST OF YOUR TEXT/IMAGES GO HERE *** %br%%br% %/p%%/font%%/div%%font face=Arial, Helvetica, sans-serif% Like I said, not sure if this is what your after but it might be useful.
 
stapi
Lost but trying
Profile
Posts: 7
Reg: Feb 13, 2011
Birmingham, UK
2,220
like
04/07/11 05:27 AM (14 years ago)
That looks promising, thank you very much for feedback guys, will get on it as soon as I'm back from work.
 

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.