I have an app which checks if website is working by pinging website via volley
If request is made I can log whether request is successful or not
I am facing trouble in showing it in cardview
I have a onBindViewHolder which populates all elements in cardview
There is a 'ischeck' function inside onBindViewHolder which checks if request is made
But since I am using volley I can't return a value from onResponse
public void onResponse(JSONObject response) {
Log.d("istrue","yes");
Toast.makeText(context1, "Success: ", Toast.LENGTH_LONG).show();
}
So how do I populate cardview from onResponse function ?