ごにょごにょやってたメモ
なんというか、励ましか慰めかのブックマークとスターありがとうございます。まだごにょごにょしてまして、もうこれで終わるー。
preferencesの更新
- PreferenceManagergetDefaultSharedPreferences で SharedPreferences を取得
- edit()で SharedPreferences.Editor を取得
- EditorのputInt()などで書き換え
- Editorのcommit()で確定 (ここ重要)
DDMS(デバッガ)をEclipseから使う
- それ用のperspectiveがあった、気づかんかった orz
- Windows Vista/7 の 64ビット版をスタンドアロンで立ち上げるにはワザが必要っぽい(http://www.taosoftware.co.jp/blog/2009/04/android_dalvik_debug_monitor_s_3.html)
org.apache.http.client.HttpClient からのクエリでタイムアウトをセットする
try { HttpClient client = new DefaultHttpClient(); client.getParams().setParameter("http.connection.timeout", new Integer(ミリ秒); client.execute(...); } catch(SocketTimeoutException e) { // 処理 }
アイコンのガイドライン/テンプレートが出ている
http://developer.android.com/intl/ja/guide/practices/ui_guidelines/icon_design.html 参照。
でも対応できるだけの能力ないんだよぉ。