On Friday, February 5, 2016 at 9:50:56 AM UTC-6, lehs wrote:
> Can a Forth program in GForth for Androids easily be turned into an app on Google play?
It could be easy, but it isn't right now. You could have
1. apps that install some Forth libraries and assets and then
leave it up to the user to invoke them with gforth. This is
possible and easy, but you have to build the app with some other
language and of course the result isn't that desireable.
2. apps that install some Forth libraries and assets and then
launch gforth after patching gforth's files to use them. This
is possible (with the same caveat), but too troublesome in the
Android environment to be worth it.
3. apps that use gforth's own libraries (Forth and C - the .so
files on an internal file system which are protected by default
but which can be opened with gforth itself). This is possible
but you still have to reimplement the NativeInterface or
whatever that gforth is using, if you wanted to use that.
4. a build of gforth that's branded to your app and that runs
your own code instead of the default code. This is ideal but
requires that you be able to build the Android version of
gforth. I stopped trying to do this when I hit the requirement
on a custom fork of swig, but my tolerance these days is pretty
low -- I start to think of better things to do when I have to
figure out which version of autotools to use, and that's step
zero. But there are instructions and you could try following
them. And gforth obviously gets built.
5. a normal commandline ARM build of Android that's run in a
separate process, to support a normal Java-or-whatever Android
app. This is possible but requires that you write the app in
some other language, and you may find that you write more and
more of the app in that language. Such as all of the UI code.
A net2o launcher was added a few months ago with comments about
this being intended to show how specialized launchers could be
done, so some support like that may come along.
Presently the only Forthlike language that you can use to make
real Android apps that you could publish to a store is 8th:
http://8th-dev.com/
-- Julian