티스토리 뷰
프로그래밍/Android
TabHost must have a FrameLayout whose id attribute is 'android.R.id.tabcontent'
앙망 2010. 12. 1. 13:1610-21 07:59:13.244: ERROR/AndroidRuntime(281): ERROR: thread attach failed 10-21 07:59:14.325: ERROR/AndroidRuntime(288): Uncaught handler: thread main exiting due to uncaught exception 10-21 07:59:14.354: ERROR/AndroidRuntime(288): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.misun.smileproj.timemetrix/com.misun.smileproj.timemetrix.TabA}: java.lang.RuntimeException: Your TabHost must have a FrameLayout whose id attribute is 'android.R.id.tabcontent' ......
원인 : TabHost 안에서 id값이 android.R.id.tabcontent 인 FrameLayout을 정의하지 않음
해결 : 해당 레이아웃 정의
댓글