Add necessary files to build and run example/sprite. Change main.go to get image from assets. Change-Id: Ic3065aab97f59c34f2c0446ab4b46840305b5864 Reviewed-on: https://go-review.googlesource.com/1882 Reviewed-by: David Crawshaw <crawshaw@golang.org>
16 lines
461 B
Batchfile
16 lines
461 B
Batchfile
:: Copyright 2014 The Go Authors. All rights reserved.
|
|
:: Use of this source code is governed by a BSD-style
|
|
:: license that can be found in the LICENSE file.
|
|
|
|
@echo off
|
|
|
|
setlocal
|
|
|
|
echo # building sprite
|
|
call make.bat
|
|
|
|
echo # installing bin/nativeactivity-debug.apk
|
|
adb install -r bin/nativeactivity-debug.apk >nul
|
|
|
|
echo # starting android.app.NativeActivity
|
|
adb shell am start -a android.intent.action.MAIN -n com.example.sprite/android.app.NativeActivity >nul |