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

android - Spacing between the stars of a rating bar? -

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

c# - Asterisk click to call -