attempt to get android/erlang working for JInterface purposes...
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
erlanglauncher
gradle/wrapper
.gitignore
ErlangLauncherTest.iml
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
hello_jinterface.erl
settings.gradle

README.md

Erlang <-> Android JInterface test

So this is a repo that shows that you can use erlang on android via jinterface to talk to erlang on a remote node, easily enough (now that I've done all the hard part).

There's a hard-coded IP address in the android app - you'll want to change that to your android application's local network IP address.

Then locally, run (from this directory):

erl -name server@192.168.1.136 -setcookie test

then:

c(hello_jinterface).
hello_jinterface:start().

Then run the android app. You will see a ping/pong. That's the successful connection. Huzzah!

Of note, the code to copy Erlang into the filesystem takes quite a while to finish, so it's commented out at the time of this writing. You'll want to uncomment it for the first run of the proof of concept, and then comment it back out for any future fiddling.