Added initial compatibility support for different Android versions.
Also added initial support for JellyBean+ query canceling.