[英]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 unexpectedly , please try again later
在这里寻找可能的解决方案(这似乎是常见的TabHost问题)
您很可能没有定义要尝试在AndroidManifest.xml中加载的类(活动)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.