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

Stack Overflow | Bolandian Eran | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

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

    Stack Overflow | 9 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

    Android - Change LinearLayout visibility automatically after radio button is checked

    Stack Overflow | 5 years ago | Hend
    java.lang.ClassCastException: android.widget.LinearLayout
  3. 0

    Running multiple applications on a shared process with a shared project library

    Stack Overflow | 5 years ago | Angelo
    java.lang.ClassCastException: xper.common.CommonView cannot be cast to xper.common.CommonView
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Application doesn't run due to ClassCastException

    Stack Overflow | 4 years ago | Elson Tan
    java.lang.ClassCastException: android.widget.LinearLayout
  6. 0

    Volley POST not working ClassCastException

    Stack Overflow | 2 years ago
    java.lang.ClassCastException: com.example.piyu004.volleycommunication.MainActivity cannot be cast to android.app.Activity at android.app.Instrumentation.newActivity(Instrumentation.java:1061)

    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