[英]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.