mspanc

mspanc

Membrane Core Team

Hello,

can anyone succeeded to run elixir app on android and integrate it with native UI?

Any hints?

I know how to use JNI, I rather wonder how to bundle interpreter, compiled elixir app and native Java app all together.

Showing Posts 1 to 5

Tuxified

Tuxified

I don’t think anyone has done that before. However the folks from CouchDB (built with Erlang) did have a version running on iOS / Android, they might help you out better.

Since it’s not easy to do and it’s not common, I’m wondering why you would like to use Elixir on Android specifically?

NobbZ

NobbZ

I’ve seen a video once of a guy who had an OTP 16 or 17 (not sure right now) installed on android, and used the erlang shell to compile elixir by hand, module by module, until he was able to switch over into iex. But AFAIK there was no interaction possible besides simple IO.

It was really only a “look at it, it works!”-demo rather than anything which actually works :wink:

Also I was able to find an ERTS implementation for OTP 17: Google Code Archive - Long-term storage for Google Code Project Hosting.

You should be able to run Elixir 1.0 or 1.1 on top of it, but it might be a lot of work and I am not sure if you will be able to have any non-terminal interaction.

mspanc

mspanc OP

Membrane Core Team

I have an app that is written in elixir and I do not want to rewrite it
into anything else, first because of costs, secondly it is soft-realtime
thing, that benefits from erlang a lot.

NobbZ

NobbZ

All guarantees you do have from BEAM are not worth a penny when running on a mobile device of any kind. Android as well as iOS do suspend your app on their behalf when they are not in foreground, maybe even when in foreground but the display is locked.

Do not do real time of any kind on a mobile device unless you are willing to have a really soft definition of the “soft” in soft-realtime, or you are willing to dive deep into the system you are programming against. Even then android might still just suspend your app just because…

mspanc

mspanc OP

Membrane Core Team

I know, but in my use case this is unlikely. My app is enabling CPU lock, WiFi lock and disabling all other things in the system that can cause automatic shutdown. It keeps screen on, and user is rather not going to use phone to anything else. Task itself is delegated to Service, etc. I really do what I can to prevent this scenario, and so far with prototype made with other technology bound via JNI it works fine.

These limitations will be present anyway but if I can re-use my elixir app with all good it provides instead of rewriting this into C, I go for it.

— All posts loaded —

Where Next? Top

Trending in Discussions Top

AstonJ
The obligatory hello world thread! Who are you and where are you from? :stuck_out_tongue:
4663 61218 595
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
515 12931 101
New
wmnnd
Hey folks, I wanted to share with you a project I’ve been working on for a while: It’s an Open Source (AGPLv3) newsletter tool. Think Ma...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
sntran
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
Ganna
Hi everyone, I have 8 years of production experience with Erlang/OTP and I’m just starting to get to know Elixir. What would you learn f...
New
gtcode
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews