この記事は2年以上前に書いたものです。
そのため情報が古い可能性があります。ご了承ください。m(_ _)m
そのため情報が古い可能性があります。ご了承ください。m(_ _)m
Hello, world! in IS01(2) | qos webmaster's blog
で、デバッガ上で動かすところまではやったけど、
is01本体にインストールして動かすのを忘れてた。。
ant releaseで、リリース用にビルド
C:\tools\devel\Android\android-sdk-windows\src\HelloWorld>ant release
Buildfile: C:\tools\devel\Android\android-sdk-windows\src\HelloWorld\build.xml
[setup] Android SDK Tools Revision 7
[setup] Project Target: JN-DK01
[setup] Vendor: SHARP Corporation
[setup] Platform Version: 1.6
[setup] API level: 4
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] ------------------
[setup] Ordered libraries:
[setup] ------------------
[setup]
[setup] WARNING: No minSdkVersion value set. Application will install on all
Android versions.
[setup]
[setup] Importing rules file: tools\ant\ant_rules_r3.xml
-set-release-mode:
-dirs:
[echo] Creating output directories if needed...
-pre-build:
-resource-src:
[echo] Generating R.java / Manifest.java from the resources...
-aidl:
[echo] Compiling aidl files into Java classes...
-pre-compile:
compile:
[javac] C:\tools\devel\Android\android-sdk-windows\tools\ant\ant_rules_r3.xm
l:336: warning: 'includeantruntime' was not set, defaulting to build.sysclasspat
h=last; set to false for repeatable builds
[javac] Compiling 1 source file to C:\tools\devel\Android\android-sdk-window
s\src\HelloWorld\bin\classes
-post-compile:
-dex:
[echo] Converting compiled files and external libraries into C:\tools\devel
\Android\android-sdk-windows\src\HelloWorld\bin\classes.dex...
-package-resources:
[echo] Packaging resources
[aapt] Creating full resource package...
-package-release:
[apkbuilder] Creating HelloWorld-unsigned.apk for release...
-release-prompt-for-password:
-release-nosign:
[echo] No key.store and key.alias properties found in build.properties.
[echo] Please sign C:\tools\devel\Android\android-sdk-windows\src\HelloWorl
d\bin\HelloWorld-unsigned.apk manually
[echo] and run zipalign from the Android SDK tools.
release:
BUILD SUCCESSFUL
Total time: 4 seconds
Buildfile: C:\tools\devel\Android\android-sdk-windows\src\HelloWorld\build.xml
[setup] Android SDK Tools Revision 7
[setup] Project Target: JN-DK01
[setup] Vendor: SHARP Corporation
[setup] Platform Version: 1.6
[setup] API level: 4
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] ------------------
[setup] Ordered libraries:
[setup] ------------------
[setup]
[setup] WARNING: No minSdkVersion value set. Application will install on all
Android versions.
[setup]
[setup] Importing rules file: tools\ant\ant_rules_r3.xml
-set-release-mode:
-dirs:
[echo] Creating output directories if needed...
-pre-build:
-resource-src:
[echo] Generating R.java / Manifest.java from the resources...
-aidl:
[echo] Compiling aidl files into Java classes...
-pre-compile:
compile:
[javac] C:\tools\devel\Android\android-sdk-windows\tools\ant\ant_rules_r3.xm
l:336: warning: 'includeantruntime' was not set, defaulting to build.sysclasspat
h=last; set to false for repeatable builds
[javac] Compiling 1 source file to C:\tools\devel\Android\android-sdk-window
s\src\HelloWorld\bin\classes
-post-compile:
-dex:
[echo] Converting compiled files and external libraries into C:\tools\devel
\Android\android-sdk-windows\src\HelloWorld\bin\classes.dex...
-package-resources:
[echo] Packaging resources
[aapt] Creating full resource package...
-package-release:
[apkbuilder] Creating HelloWorld-unsigned.apk for release...
-release-prompt-for-password:
-release-nosign:
[echo] No key.store and key.alias properties found in build.properties.
[echo] Please sign C:\tools\devel\Android\android-sdk-windows\src\HelloWorl
d\bin\HelloWorld-unsigned.apk manually
[echo] and run zipalign from the Android SDK tools.
release:
BUILD SUCCESSFUL
Total time: 4 seconds
HelloWorld-unsigned.apk が生成されたっぽい。
ファイラから見えるとこであれば何処でも良いと思うけど、とりあえず、/sdcard/配下に格納。
C:\tools\devel\Android\android-sdk-windows\src\HelloWorld>..\..\tools\adb push bin\HelloWorld-unsigned.apk /sdcard/
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
182 KB/s (0 bytes in 2916.000s)
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
182 KB/s (0 bytes in 2916.000s)
ここからは本体側の操作。
何かしらのファイルマネージャで、/sdcard配下を参照。
そういえば、ファイル名にunsignedとかあるな。。
これのせいか?