0

I have an error when i use intent to start activity when i choose a tab

intent = new Intent().setClass(this, tab1.class);
mTabHost.addTab(mTabHost.newTabSpec("tab_test1").setIndicator("Search").setContent(intent));

the erroe is

Sorry !
The Application has stopped unexpectedly  , please try again later 
Andreas Dolk
  • 111,016
  • 17
  • 174
  • 259
Adham
  • 61,516
  • 96
  • 221
  • 343

2 Answers2

1

look here for a possible solution (this seems to be a common TabHost issue)

Community
  • 1
  • 1
KevinDTimm
  • 14,026
  • 3
  • 40
  • 60
0

You've most likely not defined the classes (activities) you are trying to load in your AndroidManifest.xml.

Octavian A. Damiean
  • 39,079
  • 19
  • 94
  • 100