This is a creation in Article, where the information may have evolved or changed. Recently, I have been tinkering with the Golang to develop andriod applications. It's a little cumbersome to talk about, and it's a lot of stuff to learn in the middle. Like Ubuntu,docker,angular,ionic,jquery Mobile,amazeui, Avalon,andriod Studio. Once you have an understanding of everything, use Golang to develop andriod applications. Although there are several technical projects that are not used, but after all choose the appropriate need to compare. This is a lot of harvest, the above several techniques have a good understanding, not to say proficient, but at least get started. I will write down this main experience to share with you.
- First use Docker to compile the so library for go. Why use Docker, because the configuration environment is complex. Golang Mobile's official source repository provides dockerfile, which makes it easy to generate Docker images that have been configured to develop bad environments.
- Second, use Ionic to do HTML5 interface library. Ionic the interface is very beautiful, the document is complete, the speed is much faster than JQM, and uses the most famous angular.
- Thirdly, using Golang to do HTTP service, because HTTP service to use a lot of static resources, so need to use Go-bindata to generate embedded resource files.
- Four, using Andirod Studio as a development tool, because of wall reasons, configuration development environment very much, so I also specifically purchased a pit Dad VPN. I use the latest version, generally more than half a year ago. Why use Andirid Studio? After all, is the official recommendation, now directly use, lest later change.
A random picture, what is this diagram? Is it a legendary frame chart? Finally, I put a few pictures, let everyone feel the feeling: This is the final interface to run the project directory structure-critical code finally sent, APK demo, only 3.08MB, or quite small, we can install feel the smoothness of the download address and finally sent to the Andriod Studio project source Code, You can import the run directly. You may ask this development model IONIC,PHONEGAP have been provided, and cross-platform, what you have this advantage. What I want to say is that there is no. So library source code in the project source code. You have the ability to crack it.
Download Address