Running HTML5 code in android app without internet connectivity? - html

Is it possible to have HTML5 files stored inside the .apk file of an android app and run the files on the android app without requiring internet connectivity?

Yes. If your a native Android programmer look at the WebView. http://developer.android.com/reference/android/webkit/WebView.html
If your not, you could look at things like http://cordova.apache.org/ and http://www.appcelerator.com/platform/titanium-sdk/ and others. But honestly I've never meet a dev who has a good thing to say about these for any kind of complex app.

Related

Framework7 offline app cross origin blocked on IE & Chrome. Is there a simple local server solution as an alternative?

I am currently building an app using the Wordpress API and Framework7 that is solely intended for offline use. The offline app works perfectly in safari with local file restrictions disabled, however I understand a similar option is not available in IE or Chrome.
Unfortunately for me, the project is being developed exclusively for surface pro, so it has to work in IE.
This being the case, are there any alternative solutions in which I can quickly and smoothly serve the local files as a local server? Ideally avoiding the use of the command line and/or MAMP/XAMPP.
Found that tinyweb offered a solution that was almost perfect, however the local files were all 403 forbidden when loaded up.
Any suggestions would be welcome.
You can evaluate to encase your app in a Cordova app for Windows.
Or, if it suits your needs, a quick and dirty solution is pkg.

Using Google Chrome as bundled runtime for HTML app?

I have an HTML application that run offline, and I want to end up with a way to open the app from an exe file on Windows. I have tried Visual Studio, but the app does not run in the WebBrowser component.
I am pretty sure I have read that I can use Chrome (or some kind of Chrome version of Chrome) as a "bundled runtime", but I have a really hard time finding anything about it. Does it exist?
Using chrome as an engine (instead of "web views" based on Internet Explorer) would also make sure that the application would run nice on computers which has not updated Windows or browsers for a while.
You must be thinking of CEF: the Chromium Embedded Framework.

What cross-browser technology do you use in your web applications to manipulate on client machines?

(I have a problem with Google Chrome improvements that will drop support for my current solutions.)
I work on project where I move desktop system to an Intranet web application.
The crucial requirements are:
to move desktop system to a web application
to reproduce every single functionality from the desktop system in the webapp
While 95% of work requires creating casual web application, there is one thing which is non-standard to handle: my application must perform some actions on the client computer. These includes:
connecting with libraries
launching desktop apps
file manipulation in background
The example scenario is to integrate my system with some machine in the lab. I have to integrate my web application with drivers on client computer via DLL (desktop app did this, so my app have to do this as well).
Theoretically scenarios of the desktop actions may vary and I just want to implement some interface that will handle all the "client-machine" job the desktop app has done, so there is no need to work on every single scenario (but of course every scenario should be tested).
My solution was Java Applet. It worked. But then Google Chrome decided to drop support for NPAPI plugins, so in September'15 Java plugin (and my applet) won't be supported (http://blog.chromium.org/2014/11/the-final-countdown-for-npapi.html).
So my another solution is Java Web Start. It works. But now Google Chrome decided to drop support for background operations of external protocols (https://code.google.com/p/chromium/issues/detail?id=348640), so from Google Chrome 45 my Java Web Start solution won't be supported.
(Both above solutions work on Firefox and IE.)
The question:
What other technology can I use to interact with a client machine from my web app?
Other remarks:
I am reluctunt to write my own PPAPI plugin or Chrome Extension - I prefer one solution working on all major browsers.
I know that StackOverflow community does not like discussions about technologies, so please focus on describing possible solution to my problem.
We struggled with a similar problem as we need to connect/access electronic devices over JNI->DLL. The only technology where this is currently possible are applets. Period. (And even that is tricky since certain combinations of browsers/java versions/operating systems do not work or have problems, but this is another story...)
There are web technologies like HTLM5, JScript which can replace some functionalities of applets however in certain scenarios (like yours) there is no current alternative available - and you named some of those:
connecting with libraries like *.dll, *.so etc.
file manipulations
launching applications
And doing that across browsers and operating systems!
Solutions?
Tell your users that certain browsers can't be used (like Chrome and
Opera Next)
Write individual plugins for each browser (which probably is beyond your budget ;-)
Did you consider writing standalone application(s) in form of an executable file? The user must download and run it however e.g. java or plugins also need to be installed. But then there is the security aspect of that (downloading an and executing an executable file) - certainly not an easy decision
Have a look at FireBreath 2 - (just read about it in some posts, however didn't try it)
There are lots of discussions on SO to this topic so take a read:
alternative technologies to replace applets
applet alternative launch from browser
alternatives to java applet to launch microsoft office applications
alternative-java-applet-network-drive-access
what are the alternatives for java applet to launch client programs using chrome
alternative of npapi plugins for flash java applet
python alternative to java applet
npapi alternative for live file editing
... and many, many more!

Does the Blackberry browser support offline web apps?

Does anyone know if the standard browser in Blackberry OS6 supports cache manifests and offline browsing? If so, would it be able to handle caching around 30 pages of data?
The reason is I need to make a call between developing a native app or a web app and this will be the deal breaker for the (quicker, easier) web app idea.
Thanks in advance for any help/advice.
I think Opera Mini/Opera Mobile for BlackBerry supports this (not sure about the native browser, which is kind of a POS anyway).
Web apps for mobile devices tend to not be very good - they normally really don't compare to native apps, and this is especially so for BlackBerry. On the other hand, BB development is a big PITA, so perhaps a web app is the way to go.
Found this:
http://docs.blackberry.com/en/developers/deliverables/18169/Standards_support_in_60_browser_1120158_11.jsp
via #alex_gibson on twitter - looks like offline web apps should be okay.
Don't know if there's going to be any limitations with the amount of data you can cache for offline use but if the project goes ahead I'll write up any findings :)

Mobile test for local html files

I have local html files that I need to know how they look like in various model of Nokia, Android, iPhone, Blackberry. Is there a way to do this? I google some online website for Nokia simulator but they are not working right. I need local test of html. If there is a free software that I can switch around in different phone (or separate software), it is perfect. I know this is not something new but I cannot find it.
Thanks again.
Well, you can download all the relevant emulators (which you should be able to find via searching). Here we use Visual Studio which you can install the emulators into and run them from within the IDE, but if you don't already have VS it seems it won't be helpful for you. I suggest you just download all the relevant emulators.
Well iPhone uses safari so you can test in that