[android-developers] Re: Header button above tabs not able to manage the activity under the tabs

2012-02-03 Thread skink
vani reddy wrote: Hello, I have a header under which der are 5 tabs. The header contains a refresh button. ON click of the button the particular activity which is open under the currently opened tab should refresh. The header is common for all tabs. -- Regards, Vani Reddy and? --

Re: [android-developers] Re: Header button above tabs not able to manage the activity under the tabs

2012-02-03 Thread vani reddy
I have inflated the refresh button and made it static in the tabactivity, When i click on it the particular activity which is open under the tab should refresh i.e call a thread ,but wen i click on it when the firstactivity is open, the second actiivity thread is called. On Fri, Feb 3, 2012 at

Re: [android-developers] Re: Header button above tabs not able to manage the activity under the tabs

2012-02-03 Thread skink
vani reddy wrote: I have inflated the refresh button and made it static in the tabactivity, When i click on it the particular activity which is open under the tab should refresh i.e call a thread ,but wen i click on it when the firstactivity is open, the second actiivity thread is called.

Re: [android-developers] Re: Header button above tabs not able to manage the activity under the tabs

2012-02-03 Thread skink
vani reddy wrote: HI PFA the snapshot. When i click on the above red color refresh image and the wall tab is open. Need to refresh that activity. When i switch to other tab say friends and click on refresh image it shud refersh that particular activity i.e call a method in that activity.

Re: [android-developers] Re: Header button above tabs not able to manage the activity under the tabs

2012-02-03 Thread vani reddy
HI, IF we call tabHost.getCurrentTab() will it call the oncreate of the activity. On Fri, Feb 3, 2012 at 5:19 PM, skink psk...@gmail.com wrote: vani reddy wrote: HI PFA the snapshot. When i click on the above red color refresh image and the wall tab is open. Need to refresh that

Re: [android-developers] Re: Header button above tabs not able to manage the activity under the tabs

2012-02-03 Thread skink
vani reddy wrote: HI, IF we call tabHost.getCurrentTab() will it call the oncreate of the activity. of course not, it will return the index of the current tab pskink -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Re: Header button above tabs not able to manage the activity under the tabs

2012-02-03 Thread vani reddy
Hi., TabACtivity is my HomeScreen.java and FirstActivity under the tab. On click of refresh button i need to start a thread in a method in FirstActivity .by passing a runnable object. I cannot make a method as static On Fri, Feb 3, 2012 at 7:22 PM, skink psk...@gmail.com wrote: vani reddy

Re: [android-developers] Re: Header button above tabs not able to manage the activity under the tabs

2012-02-03 Thread vani reddy
Hey, When i do setCurrentTab(int value) the activity doesnt get refreshed. On Fri, Feb 3, 2012 at 7:53 PM, vani reddy vani.reddy.bl...@gmail.comwrote: Hi., TabACtivity is my HomeScreen.java and FirstActivity under the tab. On click of refresh button i need to start a thread in a method in