Fix android crash on MIUI

Phone: Cubot S208 running MIUI rom.

Install androidgcs from market or from self built apk. If run immediately from installer or market it runs without issues.
If run from the home screen (where all the apps are, the screen I get after pressing home) both apps crash.
Running from the recent apps drawer both apps crash.
Running the market version from the icon it creates on the desktop (?) it runs ok.
Creating a similar icon with the self built apk and using it it crashes.

Some googling gave different app sleeping methods as possible culprit with some more or less complicated workarounds. 
This changeset seems to fix the issue, and I don't think it breaks anything. 
Yes apparently so, it just doesn't happen if run from the market or installer app as soon as installation finishes.