<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I have put my port of Erlang to Android on Google Code:
<a class="moz-txt-link-freetext" href="http://code.google.com/p/erlang4android/">http://code.google.com/p/erlang4android/</a><br>
<br>
To install it on your Android device, you should allow applications
from unknown sources, because the app is not delivered through
Google Play (yet). The Android device does *not* have to be rooted.<br>
<br>
It depends on Scripting Layer for Android (SL4A). So in order to use
it, you should first install SL4A r6 from here:
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a
href="http://code.google.com/p/android-scripting/downloads/detail?name=sl4a_r6.apk">http://code.google.com/p/android-scripting/downloads/detail?name=sl4a_r6.apk</a>
Then install the APK for Erlang, this one:
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a
href="http://code.google.com/p/erlang4android/downloads/detail?name=ErlangForAndroid.apk&can=2&q=#makechanges">http://code.google.com/p/erlang4android/downloads/detail?name=ErlangForAndroid.apk</a><br>
This app is just the installer. Run it to actually install
Erlang/OTP. I have included as much of OTP as might be remotely
useful, so the download is 36.5 MB. Of course you want to use the
megaco and orber applications on your phone!<br>
<br>
You can use the SL4A API through the module android that I have
added. I have added a very simple example, to show you how you can
make a small gui and respond to events. Study the SL4A API to do
other Android things.<br>
<br>
You can run some Erlang code by putting your source in the SL4A
scripts directory on the Android device, which is
/sdcard/sl4a/scripts/. The .erl file should contain and export a
function main/0, which will be called when the script is run. The
.erl file will be compiled to a .beam file automatically, only if
the .beam file does not exist. A minor inconvenience now is, that if
the .erl file is modified, it will not be recompiled unless the
.beam file is removed. The scripts directory will be in the code
path, so if you put other .beam files there, they will be found, and
.erl files there will be compiled too, if necessary.<br>
<br>
Enjoy!<br>
<br>
*Erik.<br>
<a
href="http://code.google.com/p/erlang4android/downloads/detail?name=ErlangForAndroid.apk&can=2&q=#makechanges"></a>
</body>
</html>