title: Trying to show ListFragment
body: <p>I am trying to show a ListFragment. I think I have everything set up correctly but no matter what I try I get a RuntimeException: Unable to start Activity. I have been searching and debugging for a few days now and havent came up with an answer yet. Here is the code I have so far. Any help will be greatly appreciated.</p>
  
  <p>Here is the method that starts the Activity:</p>
  
  <pre><code>private void populateList(ArrayList&lt;String&gt; list) {
      Intent intent = new Intent(this, TipListActivity.class);
      intent.putStringArrayListExtra(INTENT_KEY, list);
      startActivity(intent);
  }
  </code></pre>
  
  <p>Here is the Activity that the previous method starts:</p>
  
  <pre><code>public class TipListActivity extends FragmentActivity {
  
      /*************** FIELDS ***************************/
  
      ArrayList&lt;String&gt; arrayList;
  
      /*************** OVERRIDDEN METHODS ***************/
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.tip_list_fragment_activity);
  
          Intent intent = getIntent();
          arrayList = intent.getStringArrayListExtra(TipActivity.INTENT_KEY);
      }
  }
  </code></pre>
  
  <p>Here is tip_list_fragment_activity.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:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="horizontal" &gt;
  
      &lt;fragment
          android:name=".TipListFragment"
          android:id="@+id/fragment_activity"
          android:layout_weight="1"
          android:layout_width="match_parent"
          android:layout_height="match_parent" /&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here is TipListFragment:</p>
  
  <pre><code>public class TipListFragment extends ListFragment {
      @Override
      public void onCreate (Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          ArrayAdapter&lt;String&gt; myListAdapter = new ArrayAdapter&lt;String&gt;(getActivity(),
              android.R.layout.simple_list_item_1, new TipListActivity().arrayList);
  
          setListAdapter(myListAdapter);
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle 
          savedInstanceState) {
  
      return inflater.inflate(R.layout.list_fragment, container, false);
      }
  }
  </code></pre>
  
  <p>And finally here is list_fragment.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="match_parent"
       android:layout_height="match_parent"
       android:paddingLeft="8dp"
       android:paddingRight="8dp"&gt;
  
   &lt;ListView android:id="@+id/list"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:layout_weight="1"
             android:drawSelectorOnTop="false"/&gt;
  
   &lt;TextView android:id="@+id/textv"
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:text="@string/app_name"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Here is the stack trace:</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083): FATAL EXCEPTION: main
  07-01 00:41:37.932: E/AndroidRuntime(6083): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.app.tipcalculator/com.app.tipcalculator.TipListActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.app.ActivityThread.access$600(ActivityThread.java:123)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.os.Handler.dispatchMessage(Handler.java:99)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.os.Looper.loop(Looper.java:137)
  07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.app.ActivityThread.main(ActivityThread.java:4424)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at java.lang.reflect.Method.invokeNative(Native Method)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at java.lang.reflect.Method.invoke(Method.java:511)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at dalvik.system.NativeStart.main(Native Method)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:697)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.view.LayoutInflater.inflate(LayoutInflater.java:489)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.view.LayoutInflater.inflate(LayoutInflater.java:396)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.view.LayoutInflater.inflate(LayoutInflater.java:352)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.app.Activity.setContentView(Activity.java:1835)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at com.app.tipcalculator.TipListActivity.onCreate(TipListActivity.java:28)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.app.Activity.performCreate(Activity.java:4465)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     ... 11 more
  07-01 00:41:37.932: E/AndroidRuntime(6083): Caused by: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment .TipListFragment: make sure class name exists, is public, and has an empty constructor that is public</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.support.v4.app.Fragment.instantiate(Fragment.java:391)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.support.v4.app.Fragment.instantiate(Fragment.java:359)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:262)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:669)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     ... 21 more
  07-01 00:41:37.932: E/AndroidRuntime(6083): Caused by: java.lang.ClassNotFoundException: .TipListFragment</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at java.lang.ClassLoader.loadClass(ClassLoader.java:501)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at java.lang.ClassLoader.loadClass(ClassLoader.java:461)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     at android.support.v4.app.Fragment.instantiate(Fragment.java:381)</p>
  
  <p>07-01 00:41:37.932: E/AndroidRuntime(6083):     ... 24 more</p>