Use common code for Android GC interaction (thanks Hugh)