Updated Android (markdown)

Hajime Hoshi 2016-08-01 23:32:44 +09:00
parent e33ef96be6
commit 3bb50e5dbd

@ -1,8 +1,4 @@
Ebiten game can be built for Android by using [`gomobile bind`](golang.org/x/mobile/cmd/gomobile), which generates an aar shared library file. Note that Ebiten doesn't accept `gomobile build`, which generates an apk application file. Why Ebiten only uses `gomobile bind` is because `gomobile build` is difficult to build an actual application in Play store. `gomobile build` is very easy to use to generate an application written only in Go, but the application includes only one OpenGL surface. Even if you want to an advertisement or use inputting via the keyboard, it is almost impossible. On the other hand, `gomobile bind` generates a shared library and you'd need some glue Java code to use this, but that offers flexibility where you can do everything.
# Actual example
[Inovation 2007](https://github.com/hajimehoshi/go-inovation) is an actual Android game using Ebiten. See [the Android Studio project](https://github.com/hajimehoshi/go-inovation/tree/master/mobile/android). This application has been released in [Play store](https://play.google.com/store/apps/details?id=com.hajimehoshi.goinovation).
See the document [[Mobile]] for details common in Android and iOS.
# How to build an Android application