Serious question: what sorts of things would a person do with this?<p>Not throwing rocks, this is a question based in my own ignorance. I know what Node is, but I don't use it and I'm not an Android dev. Thanks!
If the purpose is to just run JavaScript code on Android outside of a browser context, React Native and NativeScript have been doing this for a while.<p>If the purpose is to run JavaScript functions as background services this is somewhat implemented via Service Workers in Progressive Web Apps.<p>I don't think there is any way (currently) to register a JavaScript function/library as an always-on server process. I don't see why this would be unsafe or particularly undesirable unless there is something computationally intensive happening.
This looks like a NodeJS implementation written in Java (I'm guessing from a dead-push to make Java's JS VM capable of running NodeJS APIs - and note that its compatible with Node 0.10.x - very oldish) Still would likely fill a niche where previously not possible.
"Run Node.js on Android by rewrite Node.js in Java"<p>It also hasn't been meaningfully updated in two years. I don't think that this is really useable.
I was able to get Node running on both Android and iOS using this library: <a href="https://github.com/janeasystems/nodejs-mobile" rel="nofollow">https://github.com/janeasystems/nodejs-mobile</a><p>Here's the writeup:<p><a href="https://medium.com/@tuffluver/control-an-industrial-robot-with-your-iphone-or-android-88b5dd300ee1" rel="nofollow">https://medium.com/@tuffluver/control-an-industrial-robot-wi...</a>
Very nice! I've been playing with <a href="https://github.com/janeasystems/nodejs-mobile" rel="nofollow">https://github.com/janeasystems/nodejs-mobile</a> to get the Dat project to run on Android and iOS. This might be another way to do the same thing on Android!
termux (on android) has nodejs<p><pre><code> $ apt search nodejs
nodejs/stable 8.11.2 arm
Platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications
</code></pre>
disclaimer: I haven't used it
I'm probably being blind here, but why would you need to re-write node.js in Java in order to be able to run it under Android? Why couldn't this be achieved through JNI (or similar)?
the initial purpose is to run http over udp with nodejs on Android for p2p web service. I have spent years of effort on it, but I feel tired now. anyone interested in it, can fork and continue on it. thanks.