雲曦Blog
2013年5月31日 星期五
(Android Note) Refresh Tabhost
加入此行(addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)),每次按tab鍵就會重整.
example:
new Intent(this,X.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
2013年5月29日 星期三
(Android Note) is not valid; is your activity running?
由於父activity包含子activity,但是子的activity要產生一個new AlertDialog.Builder(this),此時就會發生錯誤。
解決方式,把
this改成指向父節點getParent()
。
較新的文章
較舊的文章
首頁
訂閱:
文章 (Atom)