#Node for Android
Node4Android is a library porting of Node 0.8.8. It's an android library project of Eclipse.
Build it with Eclipse JUNO
First of all. Node4Android is a part of ShuttlePlay. ShuttlePlay is designed as a game framework. So fro code you don't need. just remove it.
ShuttlePlay is intended to run a web game on mobile device. It's not a web game client but a server. The web server is established with node.js code. So for game developer, both to frontend and backend implementation, javascript knownledge is OK.
Defaultly, The Node4Android is launched by "LaunchActivity", please find a sample in Chinese Chess. In the first time, LaunchActivity is try to find /res/raw/web.zip, and extract it in the files folder of your andorid app. The phase is called "deploy"
/res/raw/web.zip should contains these files:
The config.prop defines the game's basic settings.
LaunchActivity would then launch node.js code by invoking "NodeJsService" interface. and send intent to let browser in the device to handle the URL link "http://:/" Finally LaunchActivity finish it self. so actually it's invisible.
LaunchActivity either handle exit event. If it received a intent called "net.shuttleplay.node.ShutDown", it would then do cleanup and cancel node.js's running.
NodeService is backend service for keep node.js web server running and not be killed by system. It would be a foreground service. Hence user can see a notification on the status bar.
As default the status bar should has an icon, a title and two buttons "about" and "exit". the resource isn't defined in the node4android but it depends on it host android project. so for the host project, these resource should be provided.
Beside this, NodeService provide NodeJsService interface to launch and debug node.js.
The porting just work. And it's not just a porting. I'd add one feature for the node.
The project is conform MIT License
Any comments please send me a mail to zhentao_huang#hotmail.com, Please replace # with @
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。