Updated to Android version 4.3
Handle activity deaths and preserving chooser manager values.