Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Tip us?
 
kintwofan
Old
#1  
kintwofan's Avatar
Senior Member - OP
Thanks Meter 1322
Posts: 3,561
Join Date: Jul 2011
Location: Irmo, SC

 
DONATE TO ME
Default offlnie webapps

I'm not sure why this works on the KIN (because it doesn't work on the wp7), but it does. The browser on the KIN supports the HTML5 cache manifest command, info here (http://en.wikipedia.org/wiki/The_cac...ifest_in_HTML5). To prove this here is a working offline tetris game I have on my KIN (tetris.alexkessinger.net), the only problem is I can't actually play it because there are no arrow keys on the phone, but it is fully functioning (I get to watch the pieces fall).

So here is my idea... I see we do have developers in this forum so maybe they can try to either create some javascript webapps designed to run on the KIN that use the manifest to cache the needed files.

OR maybe we could use the cache manifest to cache an executable file and then have that filed executed through another website that gives the command to run it. I'm sure that is just wishful thinking and more than likely won't work, but I thought I would throw that out there.
 
Marcellus1
Old
#2  
Member
Thanks Meter 2
Posts: 30
Join Date: Apr 2011
Nice suggestion, but unfortunately it will not work. Just because the game is available offline doesn't mean the browser supports the HTML5 cache manifest. Pretty well every browser that I know of does and always has had a cache to store some webpage files. The KIN browser is no different. The KIN is just storing the javascript from that webpage in the cache. The tetris game is not the type of web application the HTML5 cache manifest wiki describes. Furthermore, to cache anything from the KIN browser, the 'anything' must be supported by the browser--such as the javascript used to run the tetris game. Executable files are not supported by the KIN browser.
 
kintwofan
Old
#3  
kintwofan's Avatar
Senior Member - OP
Thanks Meter 1322
Posts: 3,561
Join Date: Jul 2011
Location: Irmo, SC

 
DONATE TO ME
Default Thanks

Thanks for clearing that up for me, like I've said before I'm not a programmer (at least not in the last 10 years). However, this game is successfully cached and able to run hours after visiting the page. So maybe there is a way to duplicate it so that other javascript games can be made available to use offline. I just don't know how this game is caching the coding along with the images needed to run it. I thought it was the cache manifest because when I view the page source it says "<html manifest="tetris.manifest">".

Let me know your thoughts, I plan to try and duplicate it next week with a blackjack game, but I am in the middle of finals so I don't have time until the middle of next week. Also, like I said I'm not a programmer so I will be trying to reteach myself, so it's gonna take a while and probably not work.
 
kintwofan
Old
#4  
kintwofan's Avatar
Senior Member - OP
Thanks Meter 1322
Posts: 3,561
Join Date: Jul 2011
Location: Irmo, SC

 
DONATE TO ME
I may have posted the wrong wiki link, but the cache manifest comand does work. Below is a link to a game, with needed images, that will cahe on the phone. it is available around 12 hours after opening it. So if you put it as an "app" it is almost the same thing. Just visit it before you leave wifi and youll be good until you are in wifi again.

http://192.168.1.22/webapps/bubbles/bubbles.html
The Following User Says Thank You to kintwofan For This Useful Post: [ Click to Expand ]
 
klamation
Old
#5  
Senior Member
Thanks Meter 9
Posts: 115
Join Date: Apr 2011
Quote:
Originally Posted by kintwofan View Post
It was a worthy try, man, but that link is to an address on your local network. Do you have someone on the internet we can access? Or can you port forward port 80 through your router, to that system, to allow external access?
 
kintwofan
Old
(Last edited by kintwofan; 9th August 2011 at 04:00 PM.) Reason: I'm stupid
#6  
kintwofan's Avatar
Senior Member - OP
Thanks Meter 1322
Posts: 3,561
Join Date: Jul 2011
Location: Irmo, SC

 
DONATE TO ME
It is a router problem. I tried to open port 80 last night, but it still is not working. I am going to play with it some and see if it is a firewall problem OR if I just messed up when setting up the port forwarding. Sorry, like I've said I am not an expert.
 
johnkussack
Old
#7  
johnkussack's Avatar
Senior Member
Thanks Meter 22
Posts: 293
Join Date: Aug 2010
It's a bad address, cause he's giving out the LAN address asigned by the router.

For you to be able to use it, you would need to be in his lan or in an VPN to his lan.

To real test what you got externaly, you need to give the external (to world) ip which is given by your own router admin panel, and/or websites like whatismyip.com.
then you need to do Nat from your external Ip to your local ip, specifying so in the router.

Or else, just share the website in a zip, and save time to do stuff like eat an ice cream, drink a soda/beer and have fun.
Kin fanatic
 
kintwofan
Old
#8  
kintwofan's Avatar
Senior Member - OP
Thanks Meter 1322
Posts: 3,561
Join Date: Jul 2011
Location: Irmo, SC

 
DONATE TO ME
Default Thanks John

Thanks for the advice because this was my first time trying to make it available to everyone and clearly I couldn't do it. However, here is the file folder below. I have also done a couple of simple java apps that don't have any images (tic tac toe, blackjack, and the scientific calculator that was created by gsearle) I didn't include any of them because this bubbles one has images and shows the cache manifest works better. Also I don't have gsearle's permission so I wouldn't redistribute his work.
Attached Files
File Type: zip bubbles.zip - [Click for QR Code] (9.6 KB, 57 views)
 
zinconnu
Old
#9  
zinconnu's Avatar
Senior Member
Thanks Meter 3
Posts: 261
Join Date: Jun 2008
Default RE : Offline webapp.

Here is mine : a QR-Code Generator. No flash, java, php, ...just HTML5 & JavaScript. Works offline too!
Attached Thumbnails
Click image for larger version

Name:	screen-1.png
Views:	26
Size:	12.5 KB
ID:	1657773   Click image for larger version

Name:	screen-2.png
Views:	24
Size:	111.0 KB
ID:	1657774   Click image for larger version

Name:	screen-3.png
Views:	21
Size:	19.8 KB
ID:	1657775   Click image for larger version

Name:	screen-4.png
Views:	16
Size:	24.3 KB
ID:	1657776  

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Flash Custom ROM and Recovery to Samsung Galaxy S 4

After reading about Dan Rosenberg’s bootloader exploit for the Samsung Galaxy S 4,I … more

Windows-Based Multi-Tool for the Sony Xperia U

If you are a flashaholic and an owner of the Sony Xperia U, you may be interested in the … more

XDA University: Crafting Recovery-Flashable Packages

Those of us who use Linux on a day to day basis don’t think twice about sinking … more