TabHost tabHost = getTabHost();问题后面gettabhost有错误The method getTabHost() is undefined for the type tabhost[解决办法]TabHost tabHost = (TabHost)getTabHost();[解决办法]不是说你这方法未定义么!?Activity***.this.getTabHost();或mContext.getTabHost();