I have a problem:
Java Code
public class VisualizzaListaActivity extends TabActivity {
/** Called when the activity is first created
Try cleaning your build from the Project > Clean...
menu if you are using Eclipse. Sounds simple but often fixes this problem.
Only thing you need to change is android:id attribute in layout xml , It should be " android:id="@android:id/tabhost" "
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.
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
.
I believe the message means this:
<TabHost android:id="@+id/tabhost"
should be changed to:
<TabHost android:id="@android:id/tabhost"