Android: Fix crashes due to insufficient resource cleanups

Task-number: QTBUG-37789

Change-Id: I9971fd1e9e63dedbbfe86e567e701bab688cf144
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix typo

Change-Id: I04183182a9db9dc169390fe5c77a92588f40347b
Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>