new出MyAsyncTask對象的時候出錯
我在MainActivity類里new出MyAsyncTask對象的時候會提示No enclosing instance of type ImageTest is accessible. Must qualify the allocation with an enclosing instance of type ImageTest (e.g. x.new A() where x is an instance of ImageTest).但是我看你沒有
2015-04-30
請再檢查下代碼哈 應(yīng)該是哪里寫錯了 或者沒寫全
2015-10-13
我也有這個問題,也是把MyAsynTask改成靜態(tài)類才可以,然后在手機(jī)上測試閃退。。
2015-05-04
我把MyAsyncTask改成靜態(tài)類才可以實(shí)現(xiàn).