I have an architecture that works fine ... basically my Android application sends some parameters to the node.js server, these parameters are processed on the server, and the corresponding data is extracted, and the extracted data is then processed on the server, running phantomjs to create The output image that is sent back to my Android app (for display in ImageView ). Remote phantomjs are effectively used instead of the local browser (I am limited to displaying output in ImageView , and not using WebView directly on the device).
However, since in some cases the generated image can be quite large, I would really like to be able to use a similar architecture (with the same code base), but just to generate the image locally, on the device, and not remotely.
Thus, the architecture will: send parameters from the device to the node.js server (as before), process and receive the associated data on the server (as before), send the received data to the Android device (new) and run phantomjs on the Android device for create an image (new).
So, the only difference is that I run phantomjs on the device, and not on the server.
Is there any possible way to run phantomjs on Android?
source share