Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android execution/port? #29

Open
CaydenPierce opened this issue Nov 19, 2022 · 1 comment
Open

Android execution/port? #29

CaydenPierce opened this issue Nov 19, 2022 · 1 comment

Comments

@CaydenPierce
Copy link

CaydenPierce commented Nov 19, 2022

Hey all,

We have an app that send images to Android smart glasses and displays them on the glasses: https://github.com/emexlabs/WearableIntelligenceSystem

We are porting the thin client on the glasses to run on an MCU (ESP32) which is using Lovyan + LVGL to display information on the HUD.

Would there be an easy way to run this functionality on Android? Would there be a simple way to port it to Android?

If not, we could run this in the cloud and call it as an API, but this is less ideal than doing it locally in terms of latency, bandwidth, internet connection reliance, etc.

Thanks

CC: @alex1115alex

@embeddedt
Copy link
Member

The converter core is written in JavaScript and requires either Node.js or a browser (as it uses the platform's image facilities to decode an image file to a bitmap internally). Node.js isn't available on Android as far as I know, so I think your best bet would be to use a hidden WebView widget and implement some sort of messaging system to request an LVGL binary image given a PNG/JPG/etc. You should check how the web-based converter performs in a browser on the target device first, in order to see whether the conversion is fast enough for your purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants