tabhost.newTabSpec(currentTag[0]).setIndicator("章节").setContent(R.id.tab1Audio)执行setContent时出现空指针异常,用2.2的sdk时没有出现这个问题,用4.2.2的时候出现的,解决方法:
tabhost = (TabHost)this.findViewById(android.R.id.tabhost);
tabhost.newTabSpec(currentTag[0]).setIndicator("章节").setContent(R.id.tab1Audio)执行setContent时出现空指针异常,用2.2的sdk时没有出现这个问题,用4.2.2的时候出现的,解决方法:
tabhost = (TabHost)this.findViewById(android.R.id.tabhost);