Changing JCurlSession class to be compliant with android 18