'Source Not Found' error - attempting to implement simple Activity-Fragment Android application
<p>I am attempting to add a fragment to my main activity, this is the main.xml:</p>

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

    &lt;fragment android:name="wj.tweetTab.Titles"
        android:layout_width="300dp"
        android:layout_height="match_parent" /&gt;

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

<p>The class <code>wj.tweetTab.Titles</code> is an extension of the Fragment class which only overrides <code>onCreateView</code> to inflate it's xml layour resource:</p>

<pre><code>package wj.tweetTab;

import android.app.Fragment;

public class Titles extends Fragment {
    @Override
public View onCreateView(LayoutInflater inflater,
                             ViewGroup container,
                             Bundle savedInstanceState) {
    return inflater.inflate(wj.tweetTab.R.layout.titles, container);
}
}
</code></pre>

<p>This is the <code>titles.xml</code> layout for the titles fragment, it is simply a linear layout with a text view:</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    &gt;

    &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:textSize="16sp"
        android:text="TEXTTEXTTEXT!!!"&gt;
    &lt;/TextView&gt;

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

<p>When I try to run the application on my physical android tab I get a <code>Source not found</code> error. If I remove the fragment xml from the <code>main.xml</code> file the application runs.</p>

<p>Any ideas why this may be happening?</p>
