Volley Library Networkdispatcher.run Error
In my program there is NetworkDispatcher.run error I am using volley library. my program part is .I done all the way but nothing worked please helpme to do my program.I searced thr
Solution 1:
The error is saying that you are getting NullPointerException.
That means the variables you are using in this code is null at runtime.
Solution 2:
this error often occur send data to server error
try to put hard coded value in this code to make sure there is no any server error
publicMap<String, String> getParams()
{
Map<String, String> params = newHashMap<String, String>();
params.put("rollno","1234");
params.put("password","abcd");
return params;
}
};
if its working then you should debug to make sure this parameter getting value
params.put("id",id);
params.put("pwd",spwd);
Solution 3:
I got it.
after else if(whois.equals("RT")){
i forgot to put id = susr.substring(susr.length() - 9);
Mainly this NetworkDispatcher.run error occurs due to null value passed into getParams() method of volley library. So we must be aware about passing values to getParams() method.
Post a Comment for "Volley Library Networkdispatcher.run Error"