title: android crashlytics to detect application suddenly destroyed and disappeared
body: <p>In my application I have 3 Activities, </p>
  
  <p>1-Splash,  2-MainActivity,  3-Audio Activity.</p>
  
  <p>In the Audio Activity, I am using ExoPlayer to play 20 audio files in a loop ( after finishing last file, first file started automatically).</p>
  
  <p>Application is working fine for hours.
  Some times and during audio is played (activity in background), the application stops playing without any error message and disappear and I need to reopen the app again. (this happened with two different devices).</p>
  
  <p>below a part from Manifest</p>
  
  <pre><code>    &lt;application
      android:largeHeap="true"
      android:allowBackup="true"
      android:hardwareAccelerated="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/MyMaterialTheme"
  
      &gt;
      &lt;meta-data
          android:name="firebase_crashlytics_collection_enabled"
          android:value="false" /&gt;
      &lt;meta-data
          android:name="com.google.android.gms.version"
          android:value="@integer/google_play_services_version" /&gt;
  
      &lt;meta-data android:name="android.max_aspect" android:value="2.1"/&gt;
      &lt;activity android:name="PKG.SplashActivity"
          android:theme="@style/MyDialogTheme"
          android:configChanges="orientation|screenSize|keyboard"&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="com.google.android.gms.ads.AdActivity"
          android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" /&gt;
      &lt;activity
          android:name="com.facebook.ads.AudienceNetworkActivity"
          android:hardwareAccelerated="true" /&gt;
      &lt;activity
          android:launchMode="singleTask"
          android:name="PKG.PlayerActivity"
          android:configChanges="orientation|screenSize|keyboard"
          android:label="@string/app_name"
          android:theme="@style/MyDialogTheme"&gt;
      &lt;/activity&gt;
      &lt;activity
          android:name="PKG.MainActivity"
          android:label="@string/app_name"
          android:configChanges="orientation|screenSize|keyboard"&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <p>Crashlytics code added to Main activity ( not splash activity):</p>
  
  <pre><code>        final Fabric fabric = new Fabric.Builder(this)
              .kits(new Crashlytics())
              .debuggable(true)  // Enables Crashlytics debugger
              .build();
      Fabric.with(fabric);
  </code></pre>
  
  <p>My Questions:</p>
  
  <ul>
  <li>How to use Crashlytics to catch such application stop?</li>
  <li>any other way to catch this crash?</li>
  </ul>
  
  <p>Thanks.</p>