on tab click run oncreate() method of corresponding class android -


i have 4 tabs in same view want when chnge tabs , load again run oncreate() method of corresponding class...each time when change tab runs it's called class.i have problem bcoz tab click event load view in first time when click on again if changing tab it's load again not run oncreate() method how on come problem ...

i had used....

intent1 = new intent().setclass(this, keywordxmlparsing.class); spec1 = tabhost.newtabspec("activity2").setindicator("keyword search...").setcontent(intent1); tabhost.addtab(spec1);   @override public void ontabchanged(string label) {     // todo auto-generated method stub     if(label == "activity2") {             variables.a=2;       }     try{     if(label == "activity4") {       } 

so on tab change how run corresponding class again when push tab again??? in adv. response-rs..

put code in onresume() methods,it may you


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -