Typically yes, a program compiled with the NDK keeps working on newer versions of Android. I'm sure there are exceptions but none come to mind.
On Wed, Sep 14, 2016 at 10:02 AM, Ged Wed <ged...@gmail.com> wrote: > > Great thanks David. > > So if i pick version 21 (i think that was kit kat), then any android version > above that will work ? > I am thinking of aiming low initially and see how well that works for the > developers calling it from their Java and Swift GUI layers. > > G > > > > On Wed, 14 Sep 2016 at 15:34 David Crawshaw <craws...@golang.org> wrote: >> >> -golang-dev (which is for discussing the development of Go), +golang-nuts >> >> I'm not sure I follow your question. The Android NDK has platform >> version targets which correspond to particular versions of Android. If >> you build against a target, you can run on that version of Android or >> newer. The gomobile tool picks a default platform number to work >> against, you can modify it. >> >> The libraries built by the NDK depend on some of the Android system >> they run on: the linux kernel version, the loader, and any Java >> libraries used via JNI. If you run on a modified version of Android, >> your program may not work. (But given the kinds of modifications >> usually made by people shipping Android devices, it probably will >> work.) >> >> On Wed, Sep 14, 2016 at 8:33 AM, Ged Wed <ged...@gmail.com> wrote: >> > I am working on government medical systems and need to run on mobiles. >> > >> > On android will go code work on and target device that has an ndk >> > version at or below the version I compiled against ? >> > >> > The intent of the question is to understand the version dependencies, so >> > I can work out the best approach. >> > >> > Also is it reasonable to presume that the ndk is ndk is not tampered on >> > any phones that are using google play store. In am asking because of the >> > Chinese forks etc >> > >> > Thanks for all the effort the go mobile team has and is doing too. It's >> > very useful to us >> > >> > >> > Thank you in advance .... >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "golang-dev" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> > an email to golang-dev+unsubscr...@googlegroups.com. >> > For more options, visit https://groups.google.com/d/optout. -- 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.