Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there plans to develop a golang version of Android?

Tags:

android

go

I've looked around a bit but I can't find a discussion about a version of Android built directly from golang source code and little or no Java.

I see there's an Android 9 (Go edition) version. But it looks like it's just more Java with Golang bindings: https://www.android.com/versions/go-edition. Or is this a native Go Android?

like image 976
Tom Russell Avatar asked Aug 07 '18 22:08

Tom Russell


People also ask

Can Golang be used for Android development?

Golang has a powerful standard library and makes Golang one of the efficient language for Mobile development. The use of Golang for mobile development is getting popular due to its unique ability and authority in the API layer.

Can Golang be used for mobile development?

With introduction of GO 1.5, it has become easier for the developers to build cross platform apps for Android and iOS platforms. This means that the developers can build a single code and share it between the two platforms thereby saving lot of time and efforts for mobile app development.

Is C++ used for Android development?

C++ C++ can be used for Android App Development using the Android Native Development Kit(NDK). However, an app cannot be created totally using C++ and the NDK is used to implement parts of the app in C++ native code.

Are Android apps open source?

Android is an open source operating system for mobile devices and a corresponding open source project led by Google.


2 Answers

Note that it is possible to compile Go to both JavaScript and WASM. I've use the WASM support to build an application that work across all modern browsers. (incl. modern mobile browsers)

The way I do it is that I load the Go program in a background worker, I then use a channel to talk to the Go program as it was an API running locally. My primary reason for doing so was to leverage some of the functionality in the standard library, specifically, the cryptographic APIs.

like image 73
John Leidegren Avatar answered Sep 30 '22 04:09

John Leidegren


I see there's an Android 9 (Go edition) version. But it looks like it's just more Java with Golang bindings

No. Android Go is a line of Android apps designed for use on low-end Android devices. Android Go has nothing to do with:

  • the Go programming language
  • the Go strategy board game
  • the Go square on a traditional Monopoly board
  • etc.

I've looked around a bit but I can't find a discussion about a version of Android built directly from golang source code and little or no Java.

That is because it does not exist.

like image 40
CommonsWare Avatar answered Sep 30 '22 06:09

CommonsWare