2011年9月8日木曜日

Android開発:今日分かったこと

onCreateでDialogのfindViewByIdをしたいときNULLになるのは?解決方法。。
AlertDialog#findViewByIdはshow以降じゃないと使えない - Kazzzの日記

...out.xmlが出来て実行がエラーになるとき。。
Android: Resource entry main is already defined

R.string.xxを文字列にしたいとき getResources().getString(R.string.xx)
Resourcesクラスを使ったリソースの参照 - リソース管理 - Android入門