timob / jnigi

Golang Java JNI library
BSD 2-Clause "Simplified" License
163 stars 44 forks source link

Is it possible to do that for android? #11

Closed ajeecai closed 2 years ago

ajeecai commented 7 years ago

Hope it can do that for android so that we can write android app mostly in golang while some can be done in calling java, such as setup service.

Thanks

timob commented 7 years ago

Yes.

It should work. I am planning on doing some Android work soon. You could test it with Android-go. Specifically in this file. There is a little bit of work to glue these together. You can use WrapEnv function to get the java environment from the callback.

I am planning to do a Go binding of the Android SDK soon... If you are keen to work on this, email me at: com@tekao.net

ajeecai commented 7 years ago

Thanks for your information, I have written email to you so I close this thread.

timob commented 6 years ago

Not sure why you closed this :) Keep working here if you are planning to do any more work on JNIGI Android.

jairobjunior commented 2 years ago

Just for future reference... I've been successful using gomobile for Android.

timob commented 2 years ago

See https://github.com/timob/jnigi/issues/55 for Android support.