Is it possible to run a small and simple game on android using only CSS/JS/HTML?
E.g I have built a small game using the all too known 3 folder stucture and I was wondering if there is any easy way to run it on Android tablets without using Phonegap or Cordova.
The scenario I am imagining is this:
- I drop the folder in the tablets filesystem
- I point the browser to that local URL
- then bookmarking it for easier finding.
Is that possible to do?
2 Answers 2
You can transfer files to your phone right? So why not just transfer the files, fire up your browser and give it a try? On my phone the URL to the Downloads folder looks like file:///storage/emulated/0/Download/. Let us know if it works.
-
this reads more like a comment, see How to Answergnat– gnat2014年12月08日 14:26:18 +00:00Commented Dec 8, 2014 at 14:26
-
This is the most straightforward way.nicholaswmin– nicholaswmin2014年12月27日 14:50:35 +00:00Commented Dec 27, 2014 at 14:50
You can also deliver the app from a website. Either just use the files on the website like a typical web app or you can create a manifest file and the browser will cache the files to the local system and will automatically check if the files need to be refreshed.
http://www.codeproject.com/Articles/467724/HTML-Offline-Capabilities-Using-the-Cache-Manifes
-
I think this is @svidgen's comment.JeffO– JeffO2014年12月08日 16:37:36 +00:00Commented Dec 8, 2014 at 16:37
file://
address of the application's root directory.