title: How to view Realm database using stetho realm for windows
body: <p>I am having trouble using Stetho to view my Realm database in Chrome. I looked at this stackoverflow answer and have gotten to the point of the image in the second link. In the spot where it says inspect, on my computer it has nothing. It just shows the name of the emulator with no inspect button. I was able to get the inspect button before, but it has not been working. If someone could help that would be appreciated greatly!</p>
  
  <p>Remote Target</p>
  
  <h1>LOCALHOST</h1>
  
  <p>Android SDK built for x86  #EMULATOR-5554</p>
  
  <p><a href="https://stackoverflow.com/questions/28478987/how-to-view-my-realm-file-in-the-realm-browser/34187414#34187414">How to view my Realm file in the Realm Browser?</a></p>
  
  <p><a href="https://i.stack.imgur.com/qWtv2.png" rel="nofollow noreferrer">https://i.stack.imgur.com/qWtv2.png</a></p>
  
  <p><strong>Edit</strong></p>
  
  <p>App Build.gradle</p>
  
  <pre><code>    apply plugin: 'com.android.application'
      apply plugin: 'realm-android'
  
  android {
  compileSdkVersion 25
  buildToolsVersion "24.0.2"
  
  defaultConfig {
      applicationId "com.example.android.chargerpoints"
      minSdkVersion 17
      targetSdkVersion 25
      versionCode 1
      versionName "1.0"
  }
  buildTypes {
      release {
          minifyEnabled false
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
      }
  }
  }
  
  ext {
  supportLibVersion = '25.0.0'
  }
  
  dependencies {
  compile fileTree(dir: 'libs', include: ['*.jar'])
  testCompile 'junit:junit:4.12'
  compile 'com.android.support:appcompat-v7:25.1.0'
  compile "com.android.support:appcompat-v7:${supportLibVersion}"
  compile "com.android.support:design:${supportLibVersion}"
  
  // Gradle dependency on Stetho
  compile 'com.facebook.stetho:stetho:1.4.1'
  compile 'com.uphyca:stetho_realm:2.0.0'
  
  
  }
  
  repositories{
  maven {
      url 'https://github.com/uPhyca/stetho-realm/raw/master/maven-repo'
  }
  }
  </code></pre>
  
  <p>Project build.gradle</p>
  
  <pre><code>buildscript {
  repositories {
      jcenter()
  }
  dependencies {
      classpath 'com.android.tools.build:gradle:2.2.3'
      classpath "io.realm:realm-gradle-plugin:2.3.0"
  
      // NOTE: Do not place your application dependencies here; they belong
      // in the individual module build.gradle files
  
  }
  }
  
  allprojects {
  repositories {
          jcenter()
      }
  }
  
  task clean(type: Delete) {
  delete rootProject.buildDir
  }
  </code></pre>
  
  <p>MyApplication.java</p>
  
  <pre><code>package com.example.android.chargerpoints;
  
  import android.app.Application;
  
  import com.facebook.stetho.Stetho;
  import com.uphyca.stetho_realm.RealmInspectorModulesProvider;
  
  import io.realm.Realm;
  import io.realm.RealmConfiguration;
  
  public class MyApplication extends Application{
  
  @Override
  public void onCreate() {
      super.onCreate();
  
      Realm.init(this);
  
      RealmConfiguration config = new RealmConfiguration.Builder()
              .name("Chargers.realm")
              .schemaVersion(1)
              .build();
  
      Realm.setDefaultConfiguration(config);
  
      // Use the config
      Realm realm = Realm.getInstance(config);
  
      Stetho.initialize(
              Stetho.newInitializerBuilder(this)
                      .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
                      .enableWebKitInspector(RealmInspectorModulesProvider.builder(this).build())
                      .build());
  
      realm.close();
  }
  }
  </code></pre>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.example.android.chargerpoints"&gt;
  
  &lt;application
      android:name= "MyApplication"
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity android:name=".MainActivity"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  
      &lt;activity android:name=".CouponsActivity"
          android:label="@string/title_coupons"
          android:parentActivityName = ".MainActivity"&gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value=".MainActivity"/&gt;
      &lt;/activity&gt;
  
      &lt;activity android:name=".MyDealsActivity"
          android:label="@string/title_my_deals"
          android:parentActivityName=".MainActivity"&gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value=".MainActivity"/&gt;
      &lt;/activity&gt;
  
      &lt;activity android:name=".IndividualCouponActivity"
          android:label="@string/title_individual_coupon"
          android:parentActivityName=".MainActivity"&gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value=".MainActivity"/&gt;
      &lt;/activity&gt;
  
      &lt;activity android:name=".HelpActivity"
          android:label="@string/title_help"
          android:parentActivityName=".MainActivity"&gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value=".MainActivity"/&gt;
      &lt;/activity&gt;
  
      &lt;activity android:name=".RedeemedCouponActivity"
          android:label="@string/title_redeemed_coupon"
          android:parentActivityName=".MainActivity"&gt;
          &lt;meta-data
              android:name="android.support.PARENT_ACTIVITY"
              android:value=".MainActivity"/&gt;
      &lt;/activity&gt;
  
  &lt;/application&gt;
  </code></pre>
  
  <p></p>