Some fixes & workaround of Android issue 2626: http://code.google.com/p/android/issues/detail?id=2626