basic

command
v0.0.0-...-3f9720c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

An app that draws a green triangle on a red background.

In order to build this program as an Android APK, using the gomobile tool.

See http://godoc.org/github.com/adwpc/xmobile/cmd/gomobile to install gomobile.

Get the basic example and use gomobile to build or install it on your device.

$ go get -d github.com/adwpc/xmobile/example/basic
$ gomobile build github.com/adwpc/xmobile/example/basic # will build an APK

# plug your Android device to your computer or start an Android emulator.
# if you have adb installed on your machine, use gomobile install to
# build and deploy the APK to an Android target.
$ gomobile install github.com/adwpc/xmobile/example/basic

Switch to your device or emulator to start the Basic application from the launcher. You can also run the application on your desktop by running the command below. (Note: It currently doesn't work on Windows.)

$ go install github.com/adwpc/xmobile/example/basic && basic

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL