unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: sbaugh@catern.com
Cc: emacs-devel@gnu.org
Subject: Re: Native graphical Emacs on Android
Date: Sun, 02 Oct 2022 22:12:41 +0800	[thread overview]
Message-ID: <874jwm48me.fsf@yahoo.com> (raw)
In-Reply-To: <87lepyjqtv.fsf@catern.com> (sbaugh@catern.com's message of "Sun,  02 Oct 2022 09:30:20 -0400")

sbaugh@catern.com writes:

> I think this would work best with a native port of Emacs to Android's UI
> framework, such that Emacs shows up as a native Android app.  (rather
> than running an X server and then running Emacs on top of that, which
> works poorly in my experience.)

Note that the reason it works poorly is that the only X server for
Android is implemented quite badly.

> something hacky would be fine.

Why would it?

> But I don't know anything about Android.  Has anyone worked on this
> before?  Is this at all plausible?

I think it is plausible; I've looked at the Android native APIs, and it
seems to be be possible to get EGLSurfaces from an Android
NativeActivity, along with processing events in Emacs from a second
thread.

But EGL is probably overkill.  Emacs can probably call the Android
Canvas APIs via JNI.

Emacs can then be built as a shared library which can be linked into the
application through JNI with some wrappers in Java.

> I would be willing to fund development of such a port, if a developer
> can be found to work on it.

Porting Emacs to Android has been on my list of things to try for a long
time, as I have dabbled in Android development in the past.  I might
look into it (but not until the end of the winter); funding is
unnecessary.



  parent reply	other threads:[~2022-10-02 14:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-02 13:30 Native graphical Emacs on Android sbaugh
2022-10-02 13:51 ` Lars Ingebrigtsen
2022-10-02 14:13   ` Po Lu
2022-10-02 14:12 ` Po Lu [this message]
2022-10-02 16:03 ` Philip Kaludercic
2022-10-02 18:29 ` Jean Louis
2022-10-12 11:02 ` [SPAM UNSURE] " Stephen Leake

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jwm48me.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=emacs-devel@gnu.org \
    --cc=sbaugh@catern.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).