Skip to content

Commit

Permalink
Clear ABP from log
Browse files Browse the repository at this point in the history
  • Loading branch information
ABPSoft committed Apr 1, 2019
1 parent 497449c commit fe3b98a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void sendRequest(String inputName,String data)

public void sendRequest(final String inputName,final String data,final String fileInputName,final File file)
{
Log.i("ABPWebService","Request: "+data);
Log.i("WebService","Request: "+data);

Thread thread=new Thread(new Runnable()
{
Expand Down Expand Up @@ -170,7 +170,7 @@ public void run()

strAll=new StringBuilder(strAll.toString().trim());

Log.i("ABPWebService","Response: "+strAll);
Log.i("WebService","Response: "+strAll);

if(iOnNetwork!=null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
import android.os.Environment;
import android.util.Log;
import android.view.View;
import android.widget.Toast;

import com.aminbahrami.abpwebservice.ABPWebService;
import com.aminbahrami.abpwebservice.IOnNetwork;

import org.json.JSONException;
import org.json.JSONObject;
Expand Down Expand Up @@ -53,6 +55,21 @@ private void sendRequest()
e.printStackTrace();
}

abpWebService.setOnNetwork(new IOnNetwork()
{
@Override
public void onResponse(String response)
{
Log.i("LOG","Response: "+response);
}

@Override
public void onError(int errorCode,String errorText)
{

}
});

abpWebService.sendRequest("data",object.toString(),"file",file);
}
}

0 comments on commit fe3b98a

Please sign in to comment.