Update of Inflated TextView Triggers GC_Concurrent
<p>I have a Handler which is triggered by a runnable which updates my TextView.</p>

<p>Here is my Handler and Runnable.</p>

<pre><code>private Handler durationHandler = new Handler();

private Runnable mUpdateTimeTask = new Runnable() {
    public void run() {
        _currentRecordingTrack.setDuration(getCurrentRecordingTrack().getDuration() + 1);
        mListener.trackUpdated(getCurrentRecordingTrack());
        durationHandler.removeCallbacks(this);
        durationHandler.postDelayed(this, 1000);
    }
};
</code></pre>

<p>The handler is started using this code.</p>

<pre><code>durationHandler.removeCallbacks(mUpdateTimeTask);
    durationHandler.postDelayed(mUpdateTimeTask, 1000);
</code></pre>

<p>mListener is a feeding back to the Fragment who's TextView I want to update the text.
Here is my Fragment where I inflate and declare my TextView.</p>

<pre><code>@Override
public View onCreateView(LayoutInflater inflater, ViewGroup group, Bundle saved)
{
    super.onCreateView(inflater, group, saved);
    View view = inflater.inflate(R.layout.trackdisplayfrag, group, false);
    this.durationValueTxtView = (TextView) view.findViewById(R.id.durationValueLbl);    
    return view;
    }
</code></pre>

<p>So when the mListener.trackUpdated() is called, it then calls my Fragment method to update the TextView's text.</p>

<pre><code>public void updateViewWithTrack(CCTrack track) {
if (track != null)
    durationValueTxtView.setText(TimeUtility.convertSecondsIntoTimeString(track.getDuration()));
}
</code></pre>

<p><strong>The Problem</strong></p>

<p>So this all works fine. The problem is I'm getting GC_CONCURRENT messages in my LogCat every time the TextView's setText is called.</p>

<p>If I remove the TextView's setText method it doesn't happen anymore but it still continues to happen if I replace the TimeUtility... method with just a string.</p>

<p>Any help would be much appreciated.</p>
