refactored for arcgis android api 10.2

fix for #9