getView() in CountDownTimer's onTick return sometimes null

Posted by HexWrench on Stack Overflow See other posts from Stack Overflow or by HexWrench
Published on 2012-07-01T20:04:48Z Indexed on 2012/07/01 21:16 UTC
Read the original article Hit count: 207

I had recently a crash report where I could see that in the CountDownTimer's onTick method the getView() call returns null. I use the onTick method to display the remaining time in a textView. The textView is inside a Fragment.

Since the CountDownTimer runs in the UI thread I have no idea why this had happened.

What could be the cause for this and what is a possible workaround for this problem?

Thanks!

© Stack Overflow or respective owner

Related posts about android

Related posts about android-fragments