2
0
mirror of synced 2025-02-24 07:18:15 +00:00
Daniel Ortiz Pereira da Silva 696db895ff example/sprite: make example lives
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>
2014-12-22 13:10:48 +00:00

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