android:The application may be doing too much work on its main thread.

error log:

02-26 05:09:02.530: I/Choreographer(1434): Skipped 47 frames! The application may be doing too much work on its main thread.
02-26 05:09:08.340: I/Choreographer(384): Skipped 47 frames! The application may be doing too much work on its main thread.
02-26 05:09:08.790: I/Choreographer(384): Skipped 45 frames! The application may be doing too much work on its main thread.
02-26 05:09:09.340: I/Choreographer(1434): Skipped 165 frames! The application may be doing too much work on its main thread.
02-26 05:09:12.520: W/ActivityManager(384): Launch timeout has expired, giving up wake lock!

原因竟然是寫成瞭這樣。

public class ShouChe extends Activity{

public class MainActivity extends Activity implements OnScrollListener{

….

}

}

本來是copy來MainActivity 換成ShouChe,結果嵌套瞭。。。。

發佈留言