Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 71

vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
07/12/12 02:23 PM (13 years ago)

About HTML screen

I used an HTML screen in my test app, and I read that the page would be cached on the device for offline use. It means - I guess - that the page is first retrieved from the web ? I saw an http URL in my config file and noticed that my HTML screen was a page hosted at buzztouch. So I'm wondering: what if the user runs my app while he's offline: will my screen be displayed ? Or does he need internet to see my HTML screen ? If it's the second answer, then is there a way to display an HTML page even if we're not connected to internet ? I'd like to create an app with several HTML pages, but I'd like this app to be useable offline. Thanks for your help.
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/12/12 02:33 PM (13 years ago)
HTML screen? There's the Custom URL, Webpage that will cache the website you visit. ¿Just tested this and was surprised to find that it didn't cache the website, anyone have a different experience? There's the Custom HTML, Text screen that's hosted on the control panel, but I don't believe it caches the data. Please correct me if I'm wrong. There's the HTML Doc screen which allows you to either embed the doc (offline use) or link via a URL. Fred
 
Ag-Chieve
Lost but trying
Profile
Posts: 124
Reg: Apr 16, 2012
Winnipeg
9,090
like
07/12/12 02:33 PM (13 years ago)
In the advanced settings there is a setting to force refresh a page. If you set it to force refresh then I believe you have to be connected to the internet because the app will always try to grab the latest version. If you set it to no force refresh, then this allows the app to cache the page. Test out the different settings to see which one suits your purposes.
 
Ag-Chieve
Lost but trying
Profile
Posts: 124
Reg: Apr 16, 2012
Winnipeg
9,090
like
07/12/12 02:36 PM (13 years ago)
Looks like Fred and I posted at the same time. Between the two of us, he's probably correct. I'd follow his advice. (And don't forget to visit his Buzztouch guide.)
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/12/12 02:38 PM (13 years ago)
@Ag-Chieve, that's only because I quote you ('all). Fred
 
vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
like
07/12/12 02:52 PM (13 years ago)
I'm talking about the "Custom HTML / Text" plugin. What I'd like to know is: if I use this plugin in my app, will the screens be displayed even if the user is not connected to internet? Sorry, I think i understood: In my app I should use the HTML Doc screen. Is that right ?
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/12/12 02:57 PM (13 years ago)
Yes, if you wish for offline capabilities. Need to check if Custom HTML, Text screen will cache don't see the answer documented. Fred
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/12/12 02:59 PM (13 years ago)
There's also the Launch a Native app (browser) screen which may cache the website. Fred
 
vDesjardins
Code is Art
Profile
Posts: 37
Reg: Jun 13, 2012
Paris, France
10,870
like
07/12/12 03:51 PM (13 years ago)
Thank you Fred.
 
Sandeep
Android Fan
Profile
Posts: 1260
Reg: Feb 01, 2012
Miraj, India
25,250
like
07/12/12 08:49 PM (13 years ago)
@vDesjardins- If you want to your app to display html pages offline, the best idea would be to include the html doc in your project itself using the html doc plugin. However if you want to display the pages with changing contents, i suggest you use either custom text/html plugin or host your html doc on dropbox. I have done both with my apps i.e. in few apps html docs are locally available in the project itself while few apps have html docs hosted on dropbox. Hosting html docs on dropbox is really helpful and convenient in case you need to change the contents regularly without need to update the app in market.
 

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.