package org.succlz123.sample; import android.app.Application; import com.facebook.stetho.Stetho; import com.facebook.stetho.okhttp.StethoInterceptor; import com.squareup.okhttp.OkHttpClient; /** * Created by succlz123 on 15/11/20. */ public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); Stetho.initializeWithDefaults(this); OkHttpClient client = new OkHttpClient(); client.networkInterceptors().add(new StethoInterceptor()); } }