I have two web applications, one use java/tomcat/postgresql,
another php/mysql. I need to run them in offline mode on tablet.
Thus I have to make decision rewrite them into ordinal android applications, or use as is
.
So, do you see any big disadvantages in compare with ordinal Android app, in installation oracle jvm, php, mysql, postgresql prebuilded for arm cpu into rooted android? Note, that web application will have only one user/client in such case.
For example power consummation or cpu usage?
As I understand, because of usage of loopback device, no power loss for 3G/LTE/Wifi. Because of php/tomcat work only during http request, not big power or cpu usage?
And as understand open sockets on loopback device to not prevent go into low-power mode.
The only difference in compare to ordinal android application as I understand will be more big memory usage?
Honestly, for the effort you would need to go to in rooting the device, installing required services/software and then maintaining it, surely it would be much better to rewrite it as an android app or maybe use something like cordova. This has the added advantage of being easier to roll out to multiple devices should the need arise.
Ehm...
I have two web applications, one use java/tomcat/postgresql, another php/mysql. I need to run them in offline mode on tablet. Thus I have to make decision rewrite them into ordinal android applications, or use as is.
If you want to run something locally in an Android device then you have to make them run as an Android app. Or as part of one.
So, do you see any big disadvantages in compare with ordinal Android app, in installation oracle jvm, php, mysql, postgresql prebuilded for arm cpu into rooted android? Note, that web application will have only one user/client in such case.
If whoever is going to use this doesn't mind about the huge overhead (relative to usual portable devices capabilities), then it's fine. I don't see this happening, though.
Look, I don't want to sound rude, but who gave you such a silly idea? (trying too hard to not say something else over here). The programs you mention were clearly not intended for execution inside such a device. Some of them might even need a full rewrite in order to even launch.
Going into details, some of the disadvantages are these:
Besides, you have Java, C and SQLite at your disposal, all out of the box and properly optimized for use in mobile devices. Why not use that in a mobile device application?
Finally, I'm not saying that what you have in mind is impossible, because technically it should be possible, but is that effort worth it?