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? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -