Your Content Must Have A Tabhost Whose Id Attribute Is 'android.r.id.tabhost'
I have a problem: Java Code public class VisualizzaListaActivity extends TabActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle saved
Solution 1:
I believe the message means this:
<TabHost android:id="@+id/tabhost"
should be changed to:
<TabHost android:id="@android:id/tabhost"
Solution 2:
Try cleaning your build from the Project > Clean...
menu if you are using Eclipse. Sounds simple but often fixes this problem.
Solution 3:
Only thing you need to change is android:id attribute in layout xml , It should be " android:id="@android:id/tabhost" "
Solution 4:
I had the same problem.
Actually I extended TabActivity
for DaAcquistareActivity
class. This was the reason. I solved the problem by extending DaAcquistareActivity
with Activity
and not with TabActivity
.
Solution 5:
Solution. If you're switching to a new Activity check it extends, perhaps on reflex copied from the primary, and there is a TabActivity, but we need Activity or other activity.
Post a Comment for "Your Content Must Have A Tabhost Whose Id Attribute Is 'android.r.id.tabhost'"