一、 E/AndroidRuntime(8761): Caused by: java.lang.IllegalArgumentException: you must specify a way to create the tab indicator.

 

解决:android.widget.TabHost.TabSpec sp1=host.newTabSpec("sp1");
        sp1.setContent(R.id.linear1);
        sp1.setIndicator("tab1");//设置标题
        host.addTab(sp1);