开发者

Exception when use android tabs with intent to start activity

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 unexpe开发者_如何学Cctedly  , please try again later 


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜