Leo on Android!

68 views
Skip to first unread message

Luka

unread,
Feb 26, 2019, 4:11:00 PM2/26/19
to leo-editor
It is now possible to run Leo on Android!

Software configuration: pydroid, pyqt5 and ministro 2. Pyqt5 was installed from pydroid quick install, ministro 2 was requested the first time pyqt5 was imported. Leo was installed with pip. Some dirty hacks:

1. Comment block at line 991 of leoApp.py:
if sys.stdout.encoding and sys.stdout.encoding.lower() != 'utf-8':
Error is produced otherwise

2. Import PyQt5 before Leo:
import PyQt5
import leo
leo.run()

There are some problems with initial window size, but after changing smartphone orientation it seems to resize properly.

It seems to work fine, though no in depth testing was carried out. I am not a programmer, just a user, so maybe there is much more elegant way to run Leo on Android. Still, consider it as a proof of concept.

Screenshot_20190226-234941.png

Edward K. Ream

unread,
Feb 26, 2019, 4:31:53 PM2/26/19
to leo-editor
On Tue, Feb 26, 2019 at 3:11 PM Luka <luka.go...@gmail.com> wrote:
It is now possible to run Leo on Android!

That's great!  Looks like it's time to check out an Android emulator.  Do you have a favorite?

Edward

Offray Vladimir Luna Cárdenas

unread,
Feb 26, 2019, 8:02:41 PM2/26/19
to leo-e...@googlegroups.com
Really cool... At some time I plan to test Leo running on my tablet.

Cheers,

Offray

Luka

unread,
Feb 27, 2019, 8:37:14 AM2/27/19
to leo-editor
Edward, actually I don't use Android emulator. May be an official emulator which is included in Android Studio is a good point to start.

I am also not sure that pydroid is a best option to run Leo on Android. It seem that pyqtdeploy is better solution. It claims iOS support also.

Luka

среда, 27 февраля 2019 г., 0:31:53 UTC+3 пользователь Edward K. Ream написал:

Rob

unread,
Feb 27, 2019, 9:14:38 AM2/27/19
to leo-editor
Wow, that's awesome! I've wanted that for a long time, but didn't think it could be easily done.

Rob...
Reply all
Reply to author
Forward
0 new messages