简体   繁体   中英

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中加载的类(活动)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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