-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.Exception: java.io.InterruptedIOException #4
Comments
please post your code.. are u sure this caused by EasyVolley ? |
yes i'm sure. |
Can you please post your code ? |
App.getInstance().getServerController().SearchCourse(getActivity(),
new ServerController.OnServerResponseListener<ArrayList<CourceParcel>>() {
@Override
public void onSuccess(ArrayList<CourceParcel> response) {
((BaseActivity) getActivity()).hideProgressBar();
productsAdapter = new ProductsAdapter(getActivity(), response);
swtichToCourseFragment();
//productsAdapter.setProductsAndNotify(response);
}
@Override
public void onError(Exception e) {
((BaseActivity) getActivity()).hideProgressBar();
App.showToast(e.getMessage());
}
}, Crs_Cod, Daneshkade, CRS_NAME, INST_FAMILY, Cookie); and the method that called: public void SearchCourse(Object subscriber,
final OnServerResponseListener<ArrayList<CourceParcel>> listener, String Crs_Cod, String Daneshkade, String CRS_NAME, String INST_FAMILY, String Cookie) {
EasyVolley.withGlobalQueue()
.load(ASFRequest.METHOD.GET, URLBase)
.addParam("operation", "getdistinct")
.addParam("Crs_Cod", Crs_Cod)
.addParam("Daneshkade", Daneshkade)
.addParam("CRS_NAME", CRS_NAME)
.addParam("INST_FAMILY", INST_FAMILY)
.addParam("Cookie", Cookie)
.asJsonObject()
.setSubscriber(subscriber)
.setCallback(new ASFRequestListener<JsonObject>() {
@Override
public void onSuccess(JsonObject response) {
JsonArray results = response.get("GetDISTINCT").getAsJsonArray();
ArrayList<CourceParcel> products = CourceParcel.parseJsonArray(results);
if (listener != null) {
listener.onSuccess(products);
}
}
@Override
public void onFailure(Exception e) {
Log.e(Utility.TAG_STRING, e.toString());
Log.e(Utility.TAG_STRING, e.getMessage() + "test");
if (listener != null) {
listener.onError(e);
}
}
})
.start();
} |
Hi! Denis |
Hi. |
hi
I'm getting the above error When for the first time open the activity.
The text was updated successfully, but these errors were encountered: