not what directory the script resides in. Additionally, if a symbolic link to a script is executed, you're going to get a (probably relative) path to where the link resides, not the actual script
I recommend testing very thoroughly before trying to put this into production. As mentioned in other answers, a much better solution is to bite the bullet and switch over to either the native Android HttpUrlConnection, or if that doesn't meet your needs, you can use the ...
According to knowledge-based views of the firm, building innovation capabilities comes from following a two-stage process of (1)problem searchby interacting with lead customers, and (2)solution searchby reaching outside the firm to external experts (Liu, Lu, Filatotchev, Buck, & Wright,2010; ...