This is amazing - works like a charm - fantastic.<br><br>Quick comment -<br><br> It would be very nice to make the client and server in fac_example.zip run "out of the box"<br>client.erl is a *must read* file. server.erl does not export main/0 and should be changed to<br>
spawn the server - otherwise you don't get control in the shell ...<br><br>First thoughts/questions:<br><br> - The download is rather large - I'm sure this could be made a *lot smaller<br> - Need Erlang APIs to the camera, GPS, .... etc.<br>
- The client.erl example shows I can make an application *without* eclipse<br> it would be very nice top abstract the details of the layout() function<br> so as not to see the XML :-)<br><br>Cheers<br><br>/Joe<br>
<br> <br><br><br><div class="gmail_quote">
On Sun, Jan 13, 2013 at 9:06 PM, Erik Reitsma <span dir="ltr"><<a href="mailto:erlang@ernovation.com" target="_blank">erlang@ernovation.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I have put my port of Erlang to Android on Google Code:
<a href="http://code.google.com/p/erlang4android/" target="_blank">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:
<a href="http://code.google.com/p/android-scripting/downloads/detail?name=sl4a_r6.apk" target="_blank">http://code.google.com/p/android-scripting/downloads/detail?name=sl4a_r6.apk</a>
Then install the APK for Erlang, this one:
<a href="http://code.google.com/p/erlang4android/downloads/detail?name=ErlangForAndroid.apk&can=2&q=#makechanges" target="_blank">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!<span><font color="#888888"><br>
<br>
*Erik.<br>
<a href="http://code.google.com/p/erlang4android/downloads/detail?name=ErlangForAndroid.apk&can=2&q=#makechanges" target="_blank"></a>
</font></span></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br>