4 ms·
"more complete support for Android" Will we be able to write at least a simple CRUD android app using pure Go?
by jsnk 12y ago
"more complete support for Android"
Will we be able to write at least a simple CRUD android app using pure Go?
- dsymonds 12y agoPer http://golang.org/s/go14android http://golang.org/s/go14android, apps that don't need the Android UI (e.g. if it's only using OpenGL) should not need Java and could be written in pure Go.
- tonyhb 12y agoIn fact, there's a user on Reddit that built an entire Android app with a UI using a webview: https://github.com/MarinX/godroid https://github.com/MarinX/godroid and http://www.reddit.com/r/golang/comments/2kv0s1/go_14_on_android/clpuscd http://www.reddit.com/r/golang/comments/2kv0s1/go_14_on_andr... It's entirely possible right now — we just need it to mature.
- pjmlp 12y agoNo, if you want to use Android UI. The NDK doesn't offer support for the Android APIs besides graphics, sensors and audio. POSIX is also only partially available. So you will need to either use JNI or write your own UI with OpenGL.
- izacus 12y agoGo Android support won't magically rewrite Android Java APIs (which is most of them, including whole UI toolkit).
- sandGorgon 12y agoeven if Android is running on ART binary rather than Dalvik ? I have been debating whether you can write code in Go that will work in the JVM GC and is linked through ART... not sure if it is possible.
- pjmlp 12y agoGo semantics are too different from Java. So unless the Android team implements something like Windows Phone language projections (APIs metadata), it won't happen.