android code wrong somewhere
<p>When i start to run my app the emulater starts fine but when its time to show the layout  it doesnt say anything about why its not loading it. I have been trying to find the problem but still no look. I just want my custom title bar and the tabhost next togever.</p>

<pre><code>     package my.demo;

     import android.app.Activity;
     import android.content.Intent;
     import android.content.res.Resources;
     import android.os.Bundle;
     import android.widget.TabHost;

    public class DemoActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main2);

    Resources res = getResources(); 
    TabHost tabHost = getTabHost();  
    TabHost.TabSpec spec;  
    Intent intent;  


    intent = new Intent().setClass(this, act11.class);


    spec = tabHost.newTabSpec("artists").setIndicator("Artists",
                      res.getDrawable(R.drawable.ic_launcher))
                  .setContent(intent);
    tabHost.addTab(spec);


    intent = new Intent().setClass(this, act22.class);


    spec = tabHost.newTabSpec("tapes").setIndicator("tapes",
                      res.getDrawable(R.drawable.ic_launcher))
                  .setContent(intent);
    tabHost.addTab(spec);



    intent = new Intent().setClass(this, act33.class);
    spec = tabHost.newTabSpec("songs").setIndicator("Songs",
                      res.getDrawable(R.drawable.ic_launcher))
                  .setContent(intent);
    tabHost.addTab(spec);

    tabHost.setCurrentTab(2);
}

private TabHost getTabHost() {
    // TODO Auto-generated method stub
    return null;
}



}


      xml

      &lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;


     &lt;FrameLayout
       android:id="@+id/frameLayout1"
       android:layout_width="match_parent"
       android:layout_height="49dp" android:background="@drawable/title_bar_tall"&gt;






    &lt;ImageView
      android:id="@+id/imageView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="right"
      android:layout_marginTop="5dp"
      android:src="@drawable/popcar11" /&gt;





    &lt;TextView
      android:id="@+id/textView1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="right"
      android:text="@string/p692" android:textColor="#ffffff"/&gt;



  &lt;/FrameLayout&gt;
     &lt;TabHost xmlns:android="http://schemas.android.com/apk/res/android"
     android:id="@android:id/tabhost"
     android:layout_width="fill_parent"
      android:layout_height="fill_parent"&gt;
   &lt;LinearLayout
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:padding="5dp"&gt;
    &lt;TabWidget
        android:id="@android:id/tabs"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" 
        android:tabStripEnabled="false"
        /&gt;

    &lt;FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:padding="5dp" &gt;

    &lt;/FrameLayout&gt;

    &lt;/LinearLayout&gt;
    &lt;/TabHost&gt;
</code></pre>

<p></p>

<p>I did input all my class activitys to my MF. i deleted my main.xml cos it was messed up so made new one called main2. all seenms fine on the folder icon no warning signs.</p>
