codepath / codepath/android_guides

How can i add Interceptor with this?

Open
#361 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
28.3k
Forks
6.2k
PR merge metrics
No merged PRs in 30d

Description

I have tried adding interceptor as follows
LoggingInterceptor interceptor=new LoggingInterceptor();
OkHttpClient client = new OkHttpClient.Builder()
.addInterceptor(interceptor)
.build();
AndroidNetworking.initialize(AccountActivity.this,client);
but after adding this when try to upload file connection got closed after a few second.

How can i properly add an interceptor?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.