unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Native graphical Emacs on Android
@ 2022-10-02 13:30 sbaugh
  2022-10-02 13:51 ` Lars Ingebrigtsen
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: sbaugh @ 2022-10-02 13:30 UTC (permalink / raw)
  To: emacs-devel


I would like to be able to use graphical Emacs (e.g. with rendered
images, buttons, menus, etc. rather than Emacs in a terminal emulator)
on Android.

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 compiling Emacs to run on Android and render in a terminal or
X server is basically trivial; it's teaching Emacs to render with
Android's UI framework that is hard.

Porting Emacs to any new UI framework is very hard, I know.  I don't
think a fully-native (PGTK-style) port is necessary; something hacky
would be fine.

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

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




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Native graphical Emacs on Android
  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
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2022-10-02 13:51 UTC (permalink / raw)
  To: sbaugh; +Cc: emacs-devel

sbaugh@catern.com writes:

> I would like to be able to use graphical Emacs (e.g. with rendered
> images, buttons, menus, etc. rather than Emacs in a terminal emulator)
> on Android.

That would be very welcome.

> Porting Emacs to any new UI framework is very hard, I know.  I don't
> think a fully-native (PGTK-style) port is necessary; something hacky
> would be fine.

Some people were previously discussing PGTK in relation to Android -- my
impression was that adjusting the PGTK port to work in Android would be
the way to go.

But I don't know much about Android, either.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Native graphical Emacs on Android
  2022-10-02 13:30 Native graphical Emacs on Android sbaugh
  2022-10-02 13:51 ` Lars Ingebrigtsen
@ 2022-10-02 14:12 ` Po Lu
  2022-10-02 16:03 ` Philip Kaludercic
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Po Lu @ 2022-10-02 14:12 UTC (permalink / raw)
  To: sbaugh; +Cc: emacs-devel

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.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Native graphical Emacs on Android
  2022-10-02 13:51 ` Lars Ingebrigtsen
@ 2022-10-02 14:13   ` Po Lu
  0 siblings, 0 replies; 7+ messages in thread
From: Po Lu @ 2022-10-02 14:13 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: sbaugh, emacs-devel

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Some people were previously discussing PGTK in relation to Android -- my
> impression was that adjusting the PGTK port to work in Android would be
> the way to go.

GTK does not support Android, so I don't understand how that could've
come up.

Qt however does.  I don't know how well it works though.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Native graphical Emacs on Android
  2022-10-02 13:30 Native graphical Emacs on Android sbaugh
  2022-10-02 13:51 ` Lars Ingebrigtsen
  2022-10-02 14:12 ` Po Lu
@ 2022-10-02 16:03 ` Philip Kaludercic
  2022-10-02 18:29 ` Jean Louis
  2022-10-12 11:02 ` [SPAM UNSURE] " Stephen Leake
  4 siblings, 0 replies; 7+ messages in thread
From: Philip Kaludercic @ 2022-10-02 16:03 UTC (permalink / raw)
  To: sbaugh; +Cc: emacs-devel

sbaugh@catern.com writes:

> I would like to be able to use graphical Emacs (e.g. with rendered
> images, buttons, menus, etc. rather than Emacs in a terminal emulator)
> on Android.

I haven't tried it out myself, but I recently found out about a
Termux[0] plug-in called Termux GUI[1].  Have you tried that out?  From
what I see, the standard Termux repository also includes an X11 Build of
Emacs 28[2]!

[0] https://termux.dev/
[1] https://github.com/termux/termux-gui
[2] https://packages.termux.dev/apt/termux-x11/pool/main/e/emacs-x/



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Native graphical Emacs on Android
  2022-10-02 13:30 Native graphical Emacs on Android sbaugh
                   ` (2 preceding siblings ...)
  2022-10-02 16:03 ` Philip Kaludercic
@ 2022-10-02 18:29 ` Jean Louis
  2022-10-12 11:02 ` [SPAM UNSURE] " Stephen Leake
  4 siblings, 0 replies; 7+ messages in thread
From: Jean Louis @ 2022-10-02 18:29 UTC (permalink / raw)
  To: sbaugh; +Cc: emacs-devel

* sbaugh@catern.com <sbaugh@catern.com> [2022-10-02 16:35]:
> 
> I would like to be able to use graphical Emacs (e.g. with rendered
> images, buttons, menus, etc. rather than Emacs in a terminal emulator)
> on Android.

You may start here:

zielmicha/emacs-android: Emacs port to Android.:
https://github.com/zielmicha/emacs-android

-- 
Jean

Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns

In support of Richard M. Stallman
https://stallmansupport.org/



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [SPAM UNSURE] Native graphical Emacs on Android
  2022-10-02 13:30 Native graphical Emacs on Android sbaugh
                   ` (3 preceding siblings ...)
  2022-10-02 18:29 ` Jean Louis
@ 2022-10-12 11:02 ` Stephen Leake
  4 siblings, 0 replies; 7+ messages in thread
From: Stephen Leake @ 2022-10-12 11:02 UTC (permalink / raw)
  To: sbaugh; +Cc: emacs-devel

sbaugh@catern.com writes:

> I would like to be able to use graphical Emacs (e.g. with rendered
> images, buttons, menus, etc. rather than Emacs in a terminal emulator)
> on Android.

I have a small music-playing app for Android, for my personal use.

It breaks with every release of Android; they pay lip service to
backward compatibility, but feel free to break anything.

So I keep my app deliberatly minimal, not doing anything beyond the bare
minimum.

I would avoid writing apps for Android like the plague.

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-10-12 11:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2022-10-02 16:03 ` Philip Kaludercic
2022-10-02 18:29 ` Jean Louis
2022-10-12 11:02 ` [SPAM UNSURE] " Stephen Leake

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).