package mars.pages.love;
import mars.music.player.R;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TabHost;
public class MusicPlayer1Activity extends TabActivity { /** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.main);
Resources rs = getResources();
TabHost th = getTabHost();
// 增加三个Intent,每一个Intent都指定着一个Activity
// 增加三个TabSpec
TabHost.TabSpec spec;
Intent intent;
intent = new Intent(this, ListMusic.class);
spec = th.newTabSpec("音乐")
.setIndicator("音乐", rs.getDrawable(R.drawable.music))
.setContent(intent);
th.addTab(spec); intent = new Intent(this, Disc.class);
spec = th.newTabSpec("艺术家")
.setIndicator("艺术家", rs.getDrawable(R.drawable.artist))
.setContent(intent);
th.addTab(spec); intent = new Intent(this, SpecialMusic.class);
spec = th.newTabSpec("专辑")
.setIndicator("专辑", rs.getDrawable(R.drawable.album))
.setContent(intent);
th.addTab(spec); intent = new Intent(this, LatestMusic.class);
spec = th.newTabSpec("最近播放")
.setIndicator("最近播放", rs.getDrawable(R.drawable.media_music))
.setContent(intent);
th.addTab(spec);
th.setTag(0);
}}真搞不懂这个错误到底出在哪里??????问题就出在这个Activity里面,大家帮忙!