雲曦Blog
2013年5月29日 星期三
(Android Note) is not valid; is your activity running?
由於父activity包含子activity,但是子的activity要產生一個new AlertDialog.Builder(this),此時就會發生錯誤。
解決方式,把
this改成指向父節點getParent()
。
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言