add getLocation for android
make exception check broader
Merge pull request #672 from jlipps/master

getLocation for android