Android開発環境の構築(Mac編)
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
** Android SDKのインストール [#hf86a5b4]
- EclipseのメニューバーからHelp > Install New Software
- Addボタンをクリック
- Nameは「Android」、Locationは「https://dl-ssl.google.co...
」
- インストール項目にチェックを入れてライセンスレビューの...
- ターゲット・ロケーションにアプリケーションフォルダに置...
- エミュレータの起動に必要なパッケージ画面にてAcceptAllを...
** パスを通す [#z825c5a0]
- Terminal.appより下記コマンドを入力
$ pico .bash_profile
- 以下のパスを入力しAndroid SDKのパスを通す
export PATH=$PATH:/Applications/android-sdk-macosx/platf...
- control+Oを押すとファイルの処理を聞かれるのでそのままre...
- control+Xでウィンドウを閉じる
- Terminal再起動後に「adb」とコマンドを入力し以下の出力が...
$ adb
Android Debug Bridge version 1.0.29
-d - directs command to the ...
returns an error if mor...
-e - directs command to the ...
returns an error if mor...
-s <serial number> - directs command to the ...
the given serial number...
environment variable.
-p <product name or path> - simple product name lik...
a relative/absolute pat...
out directory like 'out...
If -p is not specified,...
environment variable is...
be an absolute path.
devices - list all connected devi...
connect <host>[:<port>] - connect to a device via...
Port 5555 is used by de...
disconnect [<host>[:<port>]] - disconnect from a TCP/I...
Port 5555 is used by de...
Using this command with...
will disconnect from al...
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only ...
(-l means list but don'...
(see 'adb help all')
adb shell - run remote shell intera...
adb shell <command> - run remote shell command
adb emu <command> - run emulator console co...
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connecti...
forward specs are one o...
tcp:<port>
localabstract:<unix d...
localreserved:<unix d...
localfilesystem:<unix...
dev:<character device...
jdwp:<process pid> (r...
adb jdwp - list PIDs of processes ...
adb install [-l] [-r] [-s] [--algo <algorithm name> --...
- push this package file ...
('-l' means forward-loc...
('-r' means reinstall t...
('-s' means install on ...
('--algo', '--key', and...
adb uninstall [-k] <package> - remove this app package...
('-k' means keep the da...
adb bugreport - return all information ...
that should be included...
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshare...
- write an archive of the...
If no -f option is supp...
to "backup.ab" in the c...
(-apk|-noapk enable/dis...
in the archive; the ...
(-shared|-noshared enab...
shared storage / SD ...
(-all means to back up ...
(-system|-nosystem togg...
system applications;...
(<packages...> is the l...
the -all or -shared ...
list is optional. A...
command line will be...
ordinarily cause the...
adb restore <file> - restore device contents...
adb help - show this help message
adb version - show version num
scripting:
adb wait-for-device - block until device is o...
adb start-server - ensure that there is a ...
adb kill-server - kill the server if it i...
adb get-state - prints: offline | bootl...
adb get-serialno - prints: <serial-number>
adb status-window - continuously print devi...
adb remount - remounts the /system pa...
adb reboot [bootloader|recovery] - reboots the device,...
adb reboot-bootloader - reboots the device into...
adb root - restarts the adbd daemo...
adb usb - restarts the adbd daemo...
adb tcpip <port> - restarts the adbd daemo...
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connecti...
<tty> refers to the tty for PPP stream. Eg. dev:/dev/om...
[parameters] - Eg. defaultroute debug dump local notty ...
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /d...
- If it is "system" or "data", only the corresponding ...
is updated.
environmental variables:
ADB_TRACE - Print debug information...
1 or all, adb, sockets,...
ANDROID_SERIAL - The serial number to co...
ANDROID_LOG_TAGS - When used with the logc...
** ARM EABI v7a System Imageのインストール(4.0.x or late...
- EclipseのメニューからWindows > Android SDK Manager > AR...
** エミュレータを起動 [#u46f5b1f]
- EclipseのメニューからWindow > AVD Managerを選択
- ウィンドウが表示されるので右上の「New」ボタンをクリック
- 取り急ぎ、Name: Android4.0.3、Target: Android 4.0.4 - A...
- 「Start」をクリック
** 新規プロジェクトを作成 [#h05d040e]
- EclipseのメニューからNew > Project > Android Applicatio...
- Application Nameを「MyFirstAndroidApp」とし作成
- Runボタンをクリック
** References [#rf5f0400]
- [[逆引きAndroid入門:http://www.adakoda.com/android/]]
終了行:
** Android SDKのインストール [#hf86a5b4]
- EclipseのメニューバーからHelp > Install New Software
- Addボタンをクリック
- Nameは「Android」、Locationは「https://dl-ssl.google.co...
」
- インストール項目にチェックを入れてライセンスレビューの...
- ターゲット・ロケーションにアプリケーションフォルダに置...
- エミュレータの起動に必要なパッケージ画面にてAcceptAllを...
** パスを通す [#z825c5a0]
- Terminal.appより下記コマンドを入力
$ pico .bash_profile
- 以下のパスを入力しAndroid SDKのパスを通す
export PATH=$PATH:/Applications/android-sdk-macosx/platf...
- control+Oを押すとファイルの処理を聞かれるのでそのままre...
- control+Xでウィンドウを閉じる
- Terminal再起動後に「adb」とコマンドを入力し以下の出力が...
$ adb
Android Debug Bridge version 1.0.29
-d - directs command to the ...
returns an error if mor...
-e - directs command to the ...
returns an error if mor...
-s <serial number> - directs command to the ...
the given serial number...
environment variable.
-p <product name or path> - simple product name lik...
a relative/absolute pat...
out directory like 'out...
If -p is not specified,...
environment variable is...
be an absolute path.
devices - list all connected devi...
connect <host>[:<port>] - connect to a device via...
Port 5555 is used by de...
disconnect [<host>[:<port>]] - disconnect from a TCP/I...
Port 5555 is used by de...
Using this command with...
will disconnect from al...
device commands:
adb push <local> <remote> - copy file/dir to device
adb pull <remote> [<local>] - copy file/dir from device
adb sync [ <directory> ] - copy host->device only ...
(-l means list but don'...
(see 'adb help all')
adb shell - run remote shell intera...
adb shell <command> - run remote shell command
adb emu <command> - run emulator console co...
adb logcat [ <filter-spec> ] - View device log
adb forward <local> <remote> - forward socket connecti...
forward specs are one o...
tcp:<port>
localabstract:<unix d...
localreserved:<unix d...
localfilesystem:<unix...
dev:<character device...
jdwp:<process pid> (r...
adb jdwp - list PIDs of processes ...
adb install [-l] [-r] [-s] [--algo <algorithm name> --...
- push this package file ...
('-l' means forward-loc...
('-r' means reinstall t...
('-s' means install on ...
('--algo', '--key', and...
adb uninstall [-k] <package> - remove this app package...
('-k' means keep the da...
adb bugreport - return all information ...
that should be included...
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshare...
- write an archive of the...
If no -f option is supp...
to "backup.ab" in the c...
(-apk|-noapk enable/dis...
in the archive; the ...
(-shared|-noshared enab...
shared storage / SD ...
(-all means to back up ...
(-system|-nosystem togg...
system applications;...
(<packages...> is the l...
the -all or -shared ...
list is optional. A...
command line will be...
ordinarily cause the...
adb restore <file> - restore device contents...
adb help - show this help message
adb version - show version num
scripting:
adb wait-for-device - block until device is o...
adb start-server - ensure that there is a ...
adb kill-server - kill the server if it i...
adb get-state - prints: offline | bootl...
adb get-serialno - prints: <serial-number>
adb status-window - continuously print devi...
adb remount - remounts the /system pa...
adb reboot [bootloader|recovery] - reboots the device,...
adb reboot-bootloader - reboots the device into...
adb root - restarts the adbd daemo...
adb usb - restarts the adbd daemo...
adb tcpip <port> - restarts the adbd daemo...
networking:
adb ppp <tty> [parameters] - Run PPP over USB.
Note: you should not automatically start a PPP connecti...
<tty> refers to the tty for PPP stream. Eg. dev:/dev/om...
[parameters] - Eg. defaultroute debug dump local notty ...
adb sync notes: adb sync [ <directory> ]
<localdir> can be interpreted in several ways:
- If <directory> is not specified, both /system and /d...
- If it is "system" or "data", only the corresponding ...
is updated.
environmental variables:
ADB_TRACE - Print debug information...
1 or all, adb, sockets,...
ANDROID_SERIAL - The serial number to co...
ANDROID_LOG_TAGS - When used with the logc...
** ARM EABI v7a System Imageのインストール(4.0.x or late...
- EclipseのメニューからWindows > Android SDK Manager > AR...
** エミュレータを起動 [#u46f5b1f]
- EclipseのメニューからWindow > AVD Managerを選択
- ウィンドウが表示されるので右上の「New」ボタンをクリック
- 取り急ぎ、Name: Android4.0.3、Target: Android 4.0.4 - A...
- 「Start」をクリック
** 新規プロジェクトを作成 [#h05d040e]
- EclipseのメニューからNew > Project > Android Applicatio...
- Application Nameを「MyFirstAndroidApp」とし作成
- Runボタンをクリック
** References [#rf5f0400]
- [[逆引きAndroid入門:http://www.adakoda.com/android/]]
ページ名: