here is the diff for reproducing the JNI issue (I sent the previous email without it). my guess is that "context" needs to be resolved to the java side for this to work:
$ git diff . diff --git a/example/reverse/reverse/reverse.go b/example/reverse/reverse/reverse.go index c4c3377..4ccf1e7 100644 --- a/example/reverse/reverse/reverse.go +++ b/example/reverse/reverse/reverse.go @@ -6,6 +6,7 @@ package reverse import ( + "Java/android/app/AlertDialog/Builder" "Java/android/databinding/DataBindingUtil" "Java/android/os" "Java/android/support/v7/app" @@ -22,6 +23,14 @@ func (a *MainActivity) OnCreate1(this app.AppCompatActivity, b os.Bundle) { db := DataBindingUtil.SetContentView2(this, rlayout.Activity_main) mainBind := ActivityMainBinding.Cast(db) mainBind.SetAct(this) + + context := this.GetApplicationContext() + + // there are two constructors, one with (Context) and one with (Context, int) + builder := Builder.New1(context) + + // there is setMessage(int) and setMessage(CharSequence) + builder.SetMessage_Ljava_lang_CharSequence_2("Dialog test from go") } func (a *MainActivity) GetLabel() string { -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.