繁体   English   中英

使用意图启动活动的android标签时发生异常

[英]Exception when use android tabs with intent to start activity

选择选项卡时使用意图启动活动时出现错误

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

错误是

Sorry !
The Application has stopped unexpectedly  , please try again later 

在这里寻找可能的解决方案(这似乎是常见的TabHost问题)

您很可能没有定义要尝试在AndroidManifest.xml中加载的类(活动)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM