issues #2899:Fix application will crash when back to background on Andro...

...id.