Everything with Stetho works great in my sample app I tested after going through this YouTube tutorial (SQLite, SharedPreferences show) except for seeing the Network Calls which I'd love to get working.
I'm making numerous API calls when the app is loaded. One for example is within my Service.java Class as seen in the link below. Perhaps it's not showing up in Stetho because the API call happens when the app is loaded before Stetho can be opened. Any ideas would be appreciated to get this feature working.
I initialize Stetho in my MainActivity.java. In onCreate() I have
// Initialize Stetho
Stetho.initialize(
Stetho.newInitializerBuilder(this)
.enableDumpapp(new SampleDumperPluginsProvider(this))
.enableWebKitInspector(Stetho.defaultInspectorModulesProvider(this))
.build());
Then I also included a Stetho Class at the bottom.
// Create class for Stetho
private static class SampleDumperPluginsProvider implements DumperPluginsProvider {
private final Context mContext;
public SampleDumperPluginsProvider(Context context){mContext = context;}
@Override
public Iterable<DumperPlugin> get() {
ArrayList<DumperPlugin> plugins = new ArrayList<>();
for (DumperPlugin defaultPlugin : Stetho.defaultDumperPluginsProvider(mContext).get()) {
plugins.add(defaultPlugin);
}
//plugins.add(new SyncAdapterFragment());
return plugins;
}
}
and of course I also have the proper dependencies
compile 'com.facebook.stetho:stetho:1.3.0'
Thanks!