Android : how to refresh TableLayout data while switching from one tab to other?
<p>I have two tabs. One tab shows all the data fetching from DB using TableLayout.
From the other tab I enter data into DB. So now when I switch tab I should see the the new data from DB. 
As per my understanding I need to write my code inside :</p>

<pre><code>tabHost.setOnTabChangedListener(new OnTabChangeListener() {
            public void onTabChanged(String tabId) {
              if( tabId.equals("showData") ){

              }
            }
        });
</code></pre>

<p>But how can I refresh the TableLayout that is present in Activity of other class.
Can someone please help me with this. Thanks in advance!</p>
