开发者

Exception when use android tabs with intent to start activity

开发者 https://www.devze.com 2023-01-24 23:16 出处:网络
I have an error when i use intent to start activity when i choose a tab intent = new Intent().setClass(this, tab1.class);

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

精彩评论

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