[erlang-questions] Erlang4Android

Vivek Ayer <>
Mon Jan 14 04:38:06 CET 2013


Erik,

This is awesome! I just tried it out. I've been waiting for something
like this! Keep up the good work!

Vivek

On Sun, Jan 13, 2013 at 12:06 PM, Erik Reitsma <> wrote:
> Hi all,
>
> I have put my port of Erlang to Android on Google Code:
> http://code.google.com/p/erlang4android/
>
> 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.
>
> It depends on Scripting Layer for Android (SL4A). So in order to use it, you
> should first install SL4A r6 from here:
> http://code.google.com/p/android-scripting/downloads/detail?name=sl4a_r6.apk
> Then install the APK for Erlang, this one:
> http://code.google.com/p/erlang4android/downloads/detail?name=ErlangForAndroid.apk
> 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!
>
> 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.
>
> 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.
>
> Enjoy!
>
> *Erik.
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list