Androidの開発環境の導入 Mac OSX編
Android.com http://www.android.com/
全ての基本、Androidの全てがここに!
基本的なインストール方法はこのページを見るだけでOK!
Installing the SDK | Android Developers http://developer.android.com/sdk/installing.html
Eclipseのダウンロード
For Eclipse 3.5 or newer, the "Eclipse Classic" version is recommended. Otherwise, a Java or RCP version of Eclipse is recommended.
とあるので、Eclipseの最新版のClassicをダウンロード。
Androidのサンプルが全部x86っぽいので、32bitにした方が無難そう。(実は一回64bitでサンプルのビルドしようと思って怒られた。)
Eclipse Downloads http://www.eclipse.org/downloads/
(Eclipseも.appになてほしいなぁ。あぁ、Javaか…)
解凍して生成されたフォルダを~/Applicationsの下にコピー。
ADT(Android Developer Tools)のインストール
ADT Plugin for Eclipse | Android Developers http://developer.android.com/sdk/eclipse-adt.html#installing
を参考にしながらインストール。
Eclipse.appを起動。Help->Install New Software
Work withの横にあるAddボタンを押し、表示されたダイアログにADTのダウンロード元を設定する。
Name: ADT(適当)
Location: https://dl-ssl.google.com/android/eclipse/
SDKのダウンロード
ここのTopから辿れるDevelopers ページからSDKのダウンロードページへ移動。
Android SDK | Android Developers http://developer.android.com/sdk/index.html
Mac OS X (intel) android-sdk_r10-mac_x86.zip をダウンロード。
zipを解凍すると、フォルダが展開される。
まずは、Readme.txtを読んでみる。
The Android SDK archive initially contains only the basic SDK tools. It does
not contain an Android platform or any third-party libraries. In fact, it
doesn't even have all the tools you need to develop an application.In order to start developing applications, you must install the Platform-tools
and at least one version of the Android platform, using the SDK Manager.Platform-tools contains build tools that are periodically updated to support new
features in the Android platform (which is why they are separate from basic
SDK tools), including adb, dexdump, and others.To install Platform-tools, Android platforms and other add-ons, you must
have an Internet connection, so if you plan to use the SDK while
offline, please make sure to download the necessary components while online.To start the SDK Manager, please execute the program "tools/android".
From the command-line you can also directly trigger an update by
executing:
tools/android update sdkFor more information, please consult the Android web site at
http://developer.android.com/sdk/
解凍したフォルダのToolsにはAndroid開発で必要なツールのバイナルが置かれているので、他のサイトで言われているパスを通してうんちゃらかんちゃらは、要はこのバイナリを使いたいっていうお話。
このフォルダを何処に置くべきかは結構悩みどころ。Macの宗教だと何処に置くのが正しいのでしょうね?
何も考えずに、~/Libraryの下にコピーしてみます。
MacのTerminal.appのパスを通す設定を何処に記述すべきかも結構悩みどころ。
一番最後に読み込む ~/.profileに下記の内容を書けばいいんじゃないかなと個人的には思っている。
export PATH=~/Library/android-sdk-mac_x86/tools:$PATHplatform-toolsに移動したっぽい。
export PATH=~/Library/android-sdk-mac_x86/platform-tools$PATH
Terminal.appを再度立ち上げ、androidコマンドが立ち上がることを確認。
readme.txtにあるように、コマンドラインからアップデートを実行してみる。
これで新しいAndroidの標準ライブラリなんかを整えてくれるっていう便利コマンド。最初しか使わないかもしれないが。
以下、アップデートの結果。
時間掛かるので、当面自分の端末で動かすだけならば、必要ないものは除いてもいいのかもしれない。
Downloading Android SDK Platform-tools, revision 3
Installing Android SDK Platform-tools, revision 3
'adb kill-server' failed -- run manually if necessary.
Installed Android SDK Platform-tools, revision 3
Downloading Documentation for Android SDK, API 11, revision 1
Installing Documentation for Android SDK, API 11, revision 1
Installed Documentation for Android SDK, API 11, revision 1
Downloading SDK Platform Android 3.0, API 11, revision 1
Installing SDK Platform Android 3.0, API 11, revision 1
Installed SDK Platform Android 3.0, API 11, revision 1
Downloading SDK Platform Android 2.3.3, API 10, revision 1
Installing SDK Platform Android 2.3.3, API 10, revision 1
Installed SDK Platform Android 2.3.3, API 10, revision 1
Downloading SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)
Installing SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)
Installed SDK Platform Android 2.3.1, API 9, revision 2 (Obsolete)
Downloading SDK Platform Android 2.2, API 8, revision 2
Installing SDK Platform Android 2.2, API 8, revision 2
Installed SDK Platform Android 2.2, API 8, revision 2
Downloading SDK Platform Android 2.1, API 7, revision 2
Installing SDK Platform Android 2.1, API 7, revision 2
Installed SDK Platform Android 2.1, API 7, revision 2
Downloading SDK Platform Android 1.6, API 4, revision 3
Installing SDK Platform Android 1.6, API 4, revision 3
Installed SDK Platform Android 1.6, API 4, revision 3
Downloading SDK Platform Android 1.5, API 3, revision 4
Installing SDK Platform Android 1.5, API 3, revision 4
Installed SDK Platform Android 1.5, API 3, revision 4
Downloading Samples for SDK API 11, revision 1
Installing Samples for SDK API 11, revision 1
Installed Samples for SDK API 11, revision 1
Downloading Samples for SDK API 10, revision 1
Installing Samples for SDK API 10, revision 1
Installed Samples for SDK API 10, revision 1
Downloading Samples for SDK API 8, revision 1
Installing Samples for SDK API 8, revision 1
Installed Samples for SDK API 8, revision 1
Downloading Samples for SDK API 7, revision 1
Installing Samples for SDK API 7, revision 1
Installed Samples for SDK API 7, revision 1
Downloading Android Compatibility package, revision 1
Installing Android Compatibility package, revision 1
Installed Android Compatibility package, revision 1
Downloading Google Market Licensing package, revision 1
Installing Google Market Licensing package, revision 1
Installed Google Market Licensing package, revision 1
Downloading Google Market Billing package, revision 1
Installing Google Market Billing package, revision 1
Installed Google Market Billing package, revision 1
Downloading Google APIs by Google Inc., Android API 11, revision 1
Installing Google APIs by Google Inc., Android API 11, revision 1
Installed Google APIs by Google Inc., Android API 11, revision 1
Downloading Google APIs by Google Inc., Android API 10, revision 1
Installing Google APIs by Google Inc., Android API 10, revision 1
Installed Google APIs by Google Inc., Android API 10, revision 1
Downloading Google APIs by Google Inc., Android API 9, revision 2
Installing Google APIs by Google Inc., Android API 9, revision 2
Installed Google APIs by Google Inc., Android API 9, revision 2
Downloading Google APIs by Google Inc., Android API 8, revision 2
Installing Google APIs by Google Inc., Android API 8, revision 2
Installed Google APIs by Google Inc., Android API 8, revision 2
Downloading GALAXY Tab by Samsung Electronics., Android API 8, revision 1
Installing GALAXY Tab by Samsung Electronics., Android API 8, revision 1
Installed GALAXY Tab by Samsung Electronics., Android API 8, revision 1
Downloading Google APIs by Google Inc., Android API 7, revision 1
Installing Google APIs by Google Inc., Android API 7, revision 1
Installed Google APIs by Google Inc., Android API 7, revision 1
Downloading Google APIs by Google Inc., Android API 4, revision 2
Installing Google APIs by Google Inc., Android API 4, revision 2
Installed Google APIs by Google Inc., Android API 4, revision 2
Downloading Google APIs by Google Inc., Android API 3, revision 3
Installing Google APIs by Google Inc., Android API 3, revision 3
Installed Google APIs by Google Inc., Android API 3, revision 3
Updated ADB to support the USB devices declared in the SDK add-ons.
'adb kill-server' succeeded.
ADB: * daemon not running. starting it now on port 5037 *
'adb start-server' succeeded.
ADB: * daemon started successfully *
岡山三日目
T先生からお昼ご飯に御寿司を驕って頂きました!わーい。
ご馳走様でした!
MacOSX にMacPorts でMySQL5をインストール
サーバのインストール
# port install mysql5-server
設定ファイルのコピー
# cp /opt/local/share/mysql5/mysql-my-small.cnf /opt/local/etc/mysql5/my.cnf
アニメイト 秋葉原
MC ☆ あくしず 2010年 08月号 [雑誌]
- 出版社/メーカー: イカロス出版
- 発売日: 2010/06/21
- メディア: 雑誌
- 購入: 4人 クリック: 86回
- この商品を含むブログ (11件) を見る
4910120810808
¥1399
Angel Beats! -Track ZERO-
- 作者: 麻枝准(Key),ごとP
- 出版社/メーカー: アスキー・メディアワークス
- 発売日: 2010/06/23
- メディア: 単行本
- 購入: 18人 クリック: 339回
- この商品を含むブログ (34件) を見る
9784048686808
¥1890
だぶるじぇい(2) (少年マガジンコミックス)
- 作者: 亜桜まる,野中英次
- 出版社/メーカー: 講談社
- 発売日: 2010/06/17
- メディア: コミック
- 購入: 4人 クリック: 16回
- この商品を含むブログ (18件) を見る
9784063843170
¥439
Pumpkin Scissors(13) (KCデラックス)
Pumpkin Scissors(13) (KCデラックス)
- 作者: 岩永亮太郎
- 出版社/メーカー: 講談社
- 発売日: 2010/06/17
- メディア: コミック
- 購入: 5人 クリック: 130回
- この商品を含むブログ (40件) を見る
9784063759174
¥570
とある科学の超電磁砲 5 特装版―とある魔術の禁書目録外伝 (電撃コミックス)
とある科学の超電磁砲 05―『偽典・超電磁砲』付属特装版 とある魔術の禁書目録 (電撃コミックス)
- 作者: 鎌池和馬,冬川基
- 出版社/メーカー: アスキー・メディアワークス
- 発売日: 2010/06
- メディア: コミック
- 購入: 20人 クリック: 265回
- この商品を含むブログ (55件) を見る
9784048685535
¥945
マンガ家さんとアシスタントさんと 4 (ヤングガンガンコミックス)
マンガ家さんとアシスタントさんと 4 (ヤングガンガンコミックス)
- 作者: ヒロユキ
- 出版社/メーカー: スクウェア・エニックス
- 発売日: 2010/06/25
- メディア: コミック
- 購入: 2人 クリック: 39回
- この商品を含むブログ (20件) を見る
9784757529168
¥499
神のみぞ知るセカイ 9 (少年サンデーコミックス)
- 作者: 若木民喜
- 出版社/メーカー: 小学館
- 発売日: 2010/06/18
- メディア: コミック
- 購入: 3人 クリック: 217回
- この商品を含むブログ (65件) を見る
9784091223296
¥439
ゆるゆり 3 (IDコミックス) (IDコミックス 百合姫コミックス)
ゆるゆり 3 (IDコミックス) (IDコミックス 百合姫コミックス)
- 作者: なもり
- 出版社/メーカー: 一迅社
- 発売日: 2010/06/18
- メディア: コミック
- 購入: 10人 クリック: 27回
- この商品を含むブログ (35件) を見る
9784758070904
¥899
みりたり! 2 (IDコミックス) (IDコミックス 4コマKINGSぱれっとコミックス)
みりたり! 2 (IDコミックス) (IDコミックス 4コマKINGSぱれっとコミックス)
- 作者: まもウィリアムズ
- 出版社/メーカー: 一迅社
- 発売日: 2010/06/22
- メディア: コミック
- 購入: 1人 クリック: 10回
- この商品を含むブログ (12件) を見る
9784758080842
¥840
生徒会の八方 碧陽学園生徒会議事録8 (富士見ファンタジア文庫)
生徒会の八方 碧陽学園生徒会議事録8 (富士見ファンタジア文庫)
- 作者: 葵せきな,狗神煌
- 出版社/メーカー: 富士見書房
- 発売日: 2010/06/19
- メディア: 文庫
- 購入: 5人 クリック: 122回
- この商品を含むブログ (70件) を見る
9784829135297
¥630
蒼穹のカルマ5 (富士見ファンタジア文庫)
- 作者: 橘 公司,森沢晴行
- 出版社/メーカー: 富士見書房
- 発売日: 2010/06/19
- メディア: 文庫
- クリック: 48回
- この商品を含むブログ (23件) を見る
9784829135334
¥630
アニメイト 秋葉原
MC ☆ あくしず 2010年 08月号 [雑誌]
- 出版社/メーカー: イカロス出版
- 発売日: 2010/06/21
- メディア: 雑誌
- 購入: 4人 クリック: 86回
- この商品を含むブログ (11件) を見る
4910120810808
¥1399
Angel Beats! -Track ZERO-
- 作者: 麻枝准(Key),ごとP
- 出版社/メーカー: アスキー・メディアワークス
- 発売日: 2010/06/23
- メディア: 単行本
- 購入: 18人 クリック: 339回
- この商品を含むブログ (34件) を見る
9784048686808
¥1890
だぶるじぇい(2) (少年マガジンコミックス)
- 作者: 亜桜まる,野中英次
- 出版社/メーカー: 講談社
- 発売日: 2010/06/17
- メディア: コミック
- 購入: 4人 クリック: 16回
- この商品を含むブログ (18件) を見る
9784063843170
¥439
Pumpkin Scissors(13) (KCデラックス)
Pumpkin Scissors(13) (KCデラックス)
- 作者: 岩永亮太郎
- 出版社/メーカー: 講談社
- 発売日: 2010/06/17
- メディア: コミック
- 購入: 5人 クリック: 130回
- この商品を含むブログ (40件) を見る
9784063759174
¥570
とある科学の超電磁砲 5 特装版―とある魔術の禁書目録外伝 (電撃コミックス)
とある科学の超電磁砲 05―『偽典・超電磁砲』付属特装版 とある魔術の禁書目録 (電撃コミックス)
- 作者: 鎌池和馬,冬川基
- 出版社/メーカー: アスキー・メディアワークス
- 発売日: 2010/06
- メディア: コミック
- 購入: 20人 クリック: 265回
- この商品を含むブログ (55件) を見る
9784048685535
¥945
マンガ家さんとアシスタントさんと 4 (ヤングガンガンコミックス)
マンガ家さんとアシスタントさんと 4 (ヤングガンガンコミックス)
- 作者: ヒロユキ
- 出版社/メーカー: スクウェア・エニックス
- 発売日: 2010/06/25
- メディア: コミック
- 購入: 2人 クリック: 39回
- この商品を含むブログ (20件) を見る
9784757529168
¥499
神のみぞ知るセカイ 9 (少年サンデーコミックス)
- 作者: 若木民喜
- 出版社/メーカー: 小学館
- 発売日: 2010/06/18
- メディア: コミック
- 購入: 3人 クリック: 217回
- この商品を含むブログ (65件) を見る
9784091223296
¥439
ゆるゆり 3 (IDコミックス) (IDコミックス 百合姫コミックス)
ゆるゆり 3 (IDコミックス) (IDコミックス 百合姫コミックス)
- 作者: なもり
- 出版社/メーカー: 一迅社
- 発売日: 2010/06/18
- メディア: コミック
- 購入: 10人 クリック: 27回
- この商品を含むブログ (35件) を見る
9784758070904
¥899
みりたり! 2 (IDコミックス) (IDコミックス 4コマKINGSぱれっとコミックス)
みりたり! 2 (IDコミックス) (IDコミックス 4コマKINGSぱれっとコミックス)
- 作者: まもウィリアムズ
- 出版社/メーカー: 一迅社
- 発売日: 2010/06/22
- メディア: コミック
- 購入: 1人 クリック: 10回
- この商品を含むブログ (12件) を見る
9784758080842
¥840
生徒会の八方 碧陽学園生徒会議事録8 (富士見ファンタジア文庫)
生徒会の八方 碧陽学園生徒会議事録8 (富士見ファンタジア文庫)
- 作者: 葵せきな,狗神煌
- 出版社/メーカー: 富士見書房
- 発売日: 2010/06/19
- メディア: 文庫
- 購入: 5人 クリック: 122回
- この商品を含むブログ (70件) を見る
9784829135297
¥630
蒼穹のカルマ5 (富士見ファンタジア文庫)
- 作者: 橘 公司,森沢晴行
- 出版社/メーカー: 富士見書房
- 発売日: 2010/06/19
- メディア: 文庫
- クリック: 48回
- この商品を含むブログ (23件) を見る
9784829135334
¥630
MySQLで色々と格闘
MySQLでの16進数の使い方がイマイチよくわからない。
mysql> select * from stationLogResolved where id=1; +----+------------------+---------------------+--------+----------+-------------+-------+ | id | idm | utime | action | lineName | stationName | money | +----+------------------+---------------------+--------+----------+-------------+-------+ | 1 | 010103102d0d713a | 2010-05-31 18:29:00 | 32 | 本 | 調布 | 230 | +----+------------------+---------------------+--------+----------+-------------+-------+ 1 row in set (0.01 sec)