Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> 關於Android編程 >> android:The application may be doing too much work on its main thread.

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

編輯:關於Android編程

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,結果嵌套了。。。。



  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved