4 ms·
I've asked this question of a number of core Go contributors. First, I should point out that you CAN currently run Go programs on an Android device. You just c
by chimeracoder 13y ago
I've asked this question of a number of core Go contributors.
First, I should point out that you CAN currently run Go programs on an Android device. You just can't take advantage of the SDK and make GUI-based applications, etc.[0]
Basically, the answer is that nothing's preventing anybody (including you and me) from doing so, except the fact that we would have to wrap the entire NDK and make it available/usable through Go.
That's not any more difficult to do in Go than it is to do in Java, but it's a massive amount of work which has already been solved for Java, so there's little incentive to recreate it in Go.
(I'm paraphrasing, so my answer may be slightly wrong, but hopefully you get the idea - perhaps @enneff can give a more complete answer).
[0] You can, however, bundle them as hybrid applications, because Android applications apparently allow bundling of arbitrary binaries, from what I've been told.
- myko 13y agoYep! Brad Fitzpatrick posted an example of bundling a Go executable within an Android apk somewhat recently: https://plus.google.com/115863474911002159675/posts/DWmyygSrvt7 https://plus.google.com/115863474911002159675/posts/DWmyygSr...