This is an attempt to make to work the NDK Go-bindings left in old repository github.com/gooid/gooid.
I haven't tried the provided examples, but I copied camera-related files from Camera2Demo
into FyneCameraDemo
and made it work using fyne
to package it for Android:
To try it:
go install fyne.io/fyne/v2/cmd/fyne@latest
cd ./examples/FyneCameraDemo
~/go/bin/fyne package -os android/arm64
And when I've launched the app, I got this:
用 Go 开发 APK