java - Exception when use android tabs with intent to start activity -


i have error when use intent start activity when choose tab

intent = new intent().setclass(this, tab1.class); mtabhost.addtab(mtabhost.newtabspec("tab_test1").setindicator("search").setcontent(intent)); 

the erroe

sorry ! application has stopped unexpectedly  , please try again later  

look here possible solution (this seems common tabhost issue)


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

email - PHP Mail Error "The Page at X Says: E-Mail can not be sent!" -

Optimized Line drawing in QT -