I'm trying to create a long-running service from Go by calling
startService with an intent. I can't see how to create an intent with
a Class<?> from Go, so I want to do the second best thing, use
setClassName*:

    intent := Intent.New()
    intent.SetClassName("package", "service")
    context.StartService(intent)

unfortunately setClassName is overloaded and I can't figure out what
the JNI mangled name I should use is. I think I'm close with
SetClassName_Ljava_lang_String_Ljava_lang_String_2 but so far no
cigar.

--
https://developer.android.com/reference/android/content/Intent.html#setClassName(java.lang.String,
java.lang.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.

Reply via email to