1.I think you must be running the AsyncTask as bellow which is not correct:
2.which clearly suggests that you are not passing any argument to it.
3.And in doInBackground method you must be trying to get a value as bellow
but args array has length 0.
So you are facing issue.
4. You need to start the AsycTask as bellow to resolve your issue: