java.lang.RuntimeException: Unable to start activity ComponentInfo{com.world.bolandian.tests/com.world.bolandian.tests.TabHostMain}: java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.TabHost

  1. 0

    java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.TabHost

    Stack Overflow | 5 months ago | Bolandian Eran
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.world.bolandian.tests/com.world.bolandian.tests.TabHostMain}: java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to android.widget.TabHost
  2. 0

    TabActivities with Fragments

    Stack Overflow | 3 years ago | Jack
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.Test.projecttest/com.Test.projecttest.TabActivities}: java.lang.ClassCastException: android.widget.TabHost cannot be cast to android.support.v4.app.FragmentTabHost
  3. 0

    Can't use FrameLayout in ViewPager

    Stack Overflow | 2 years ago | jean d'arme
    java.lang.ClassCastException: android.widget.FrameLayout cannot be cast to android.widget.RelativeLayout
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Sax parser with string input

    Stack Overflow | 3 years ago | Maikel R
    java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
  6. 0

    RelativeLayout cannot be cast to my custom listview

    Stack Overflow | 4 years ago | luthepa1
    java.lang.ClassCastException: android.widget.RelativeLayout cannot be cast to au.drp.mylistview.draganddrop.DragSortListView

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      android.widget.RelativeLayout cannot be cast to android.widget.TabHost

      at android.app.TabActivity.onContentChanged()
    2. Android Platform
      TabActivity.onContentChanged
      1. android.app.TabActivity.onContentChanged(TabActivity.java:128)
      1 frame
    3. Android
      PhoneWindow.setContentView
      1. com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:391)
      1 frame
    4. Android Platform
      Activity.setContentView
      1. android.app.Activity.setContentView(Activity.java:2188)
      1 frame
    5. com.world.bolandian
      TabHostMain.onCreate
      1. com.world.bolandian.tests.TabHostMain.onCreate(TabHostMain.java:15)
      1 frame
    6. Android Platform
      ActivityThread.performLaunchActivity
      1. android.app.Activity.performCreate(Activity.java:5977)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)
      3 frames