Re: [go-nuts] Gomobile and SAF

2017-10-13 Thread Audrius Butkevicius
This is more work than say writing a bit of C to instantiate a JVM in the go process for example, and to get what we are after. On 13 Oct 2017 06:41, "Jakob Borg" wrote: > On 12 Oct 2017, at 23:43, audrius.butkevic...@gmail.com wrote: > > > > Your example has a MainActivity.java. > > As I said,

Re: [go-nuts] Gomobile and SAF

2017-10-12 Thread Jakob Borg
On 12 Oct 2017, at 23:43, audrius.butkevic...@gmail.com wrote: > > Your example has a MainActivity.java. > As I said, this is a Go application, and as it stands it has no Java, so it > doesn't have (and doesn't intend to have) a main activity. > Also, your initialization (Hello.initContentProvide

[go-nuts] Gomobile and SAF

2017-10-12 Thread Elias Naur
Hi, As I noted on the issue, you should avoid the reverse binding for now and use Go interfaces instead. The following change to the gomobile bind example demonstrates the technique: diff --git a/example/bind/android/app/src/main/java/org/golang/example/bind/MainActivity.java b/example/bind/

[go-nuts] Gomobile and SAF

2017-10-11 Thread audrius . butkevicius
So I've been going back and forth with this in https://github.com/golang/go/issues/105808. Syncthing on Android consists of two parts, one is the actual android UI/wrapper, and second is GOOS=linux GOARCH=arm Go binary that the android UI starts and manipulates using a rest API. >From the Go b