title: Android Studio: java.lang.RuntimeException: Unable to start activity ComponentInfo...: java.lang.ClassCastException: java.util.ArrayList
body: <p>The full error: </p>
  
  <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{app.sunshine.android.example.com.sunshine/app.sunshine.android.example.com.sunshine.vudataActivity}: java.lang.ClassCastException: java.util.ArrayList
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
              at android.app.ActivityThread.access$1500(ActivityThread.java:117)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
              at android.os.Handler.dispatchMessage(Handler.java:99)
              at android.os.Looper.loop(Looper.java:123)
              at android.app.ActivityThread.main(ActivityThread.java:3683)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:507)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
              at dalvik.system.NativeStart.main(Native Method)
       Caused by: java.lang.ClassCastException: java.util.ArrayList
              at app.sunshine.android.example.com.sunshine.vudataActivity$PlaceholderFragment.onCreateView(vudataActivity.java:83)
              at android.support.v4.app.Fragment.performCreateView(Fragment.java:1504)
              at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:942)
              at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1121)
              at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
              at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1484)
              at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:571)
              at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1129)
              at android.app.Activity.performStart(Activity.java:3791)
              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1620)
              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
              at android.app.ActivityThread.access$1500(ActivityThread.java:117)
              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
              at android.os.Handler.dispatchMessage(Handler.java:99)
              at android.os.Looper.loop(Looper.java:123)
              at android.app.ActivityThread.main(ActivityThread.java:3683)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:507)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
              at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>I literraly have no idea what is wrong, spent couple of hours trying to fix but it is still crashing
  The idea is to create menu button that (when pressed) opens another activity(vudataactivity.java). This activity has to be able to display some some text by using arrayAdapter and list_item.</p>
  
  <p>Error after Davids suggestion:</p>
  
  <pre><code>10-26 14:15:33.924      327-327/app.sunshine.android.example.com.sunshine E/AndroidRuntime﹕ FATAL EXCEPTION: main
      java.lang.NullPointerException
              at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:353)
              at android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
              at android.widget.AbsListView.obtainView(AbsListView.java:1430)
              at android.widget.ListView.makeAndAddView(ListView.java:1745)
              at android.widget.ListView.fillDown(ListView.java:670)
              at android.widget.ListView.fillFromTop(ListView.java:727)
              at android.widget.ListView.layoutChildren(ListView.java:1598)
              at android.widget.AbsListView.onLayout(AbsListView.java:1260)
              at android.view.View.layout(View.java:7175)
              at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
              at android.view.View.layout(View.java:7175)
              at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
              at android.view.View.layout(View.java:7175)
              at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
              at android.view.View.layout(View.java:7175)
              at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
              at android.view.View.layout(View.java:7175)
              at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1254)
              at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1130)
              at android.widget.LinearLayout.onLayout(LinearLayout.java:1047)
              at android.view.View.layout(View.java:7175)
              at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
              at android.view.View.layout(View.java:7175)
              at android.widget.FrameLayout.onLayout(FrameLayout.java:338)
              at android.view.View.layout(View.java:7175)
              at android.view.ViewRoot.performTraversals(ViewRoot.java:1140)
              at android.view.ViewRoot.handleMessage(ViewRoot.java:1859)
              at android.os.Handler.dispatchMessage(Handler.java:99)
              at android.os.Looper.loop(Looper.java:123)
              at android.app.ActivityThread.main(ActivityThread.java:3683)
              at java.lang.reflect.Method.invokeNative(Native Method)
              at java.lang.reflect.Method.invoke(Method.java:507)
              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
              at dalvik.system.NativeStart.main(Native Method)
  </code></pre>