interface example
step 1:- create interface class package com.example.myapp import org.json.JSONObject; public interface ApiResponse { void onApiRespond(JSONObject Resposne); } step 2:- create async task import android.os.AsyncTask; import android.util.Log; import com.example.digital.CustomSSLSocketFactory; import com.example.digital.Model.Debugger; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpPost; import org.apache.http.conn.scheme.Scheme; import org.apache.http.conn.scheme.SchemeRegistry; import org.apache.http.conn.ssl.SSLSocketFactory; import org.apache.http.conn.ssl.X509HostnameVerifier; import org.apache.http.entity.StringEntity; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.impl.conn.SingleClientConnManager; import org.apache.http.util.EntityUtils; import org.json.JSONException; import org.json.JSONObject; import java.security.KeyStore; ...