It seems to me that your activity has not yet started (or has already disappeared, as mentioned earlier)
This may depend on how the threads are executed, as well as on the application life cycle not in all versions of Android, I would try to replicate it in emulators with 1.6, 2.1 and 2.2 at least. Also, a market report can tell you if this only happens on a specific device.
I would not be surprised if some change in the manufacturer influenced the way the activity life cycle is carried out. I would try to check at least on the HTC Sense device and, possibly, on some LG, Samsung or Motorola, since everyone has some user interface settings on top of Android.
One of the possible solutions (but this is just a hack and not a solution to the problem) is to delay the execution of this code using postDelayed, by doing this, you are sure that it goes into the user interface stream after some ms. As I said, it will not attack the source of the problem, but it can make it disappear.
source share