public void onCreate(Bundle icicle)
これは何? public void onCreate(Bundle savedInstanceState) の savedInstanceState が icicle。Activity の onCreate(Bundle savedInstanceState) をオーバーライドしているものだが。
■http://stackoverflow.com/questions/919153/what-is-androids-icicle-parameter
"icicle" is sometimes used as the name of the parameter because onSaveInstanceState() used to be called onFreeze().
■http://blog.livedoor.jp/maochan__/archives/1885701.html
「ver.0.9beta 以前の onSaveInstanceState() は onFreeze() を呼び出し、保存された状態は ”つらら(icicle)" と呼ばれていた。一部のドキュメントやサンプルでは、まだこの古い名前が使われている場合がある。」
■http://blog.tyreeapps.com/2011/02/icicle-and-savedinstancestate-are.html
以前のバージョンの名残ということで、今となっては hoge 的なもの、ということでよいのか。
0 件のコメント:
コメントを投稿