title: Unable to add window -- token android.os.BinderProxy@43756de8 is not valid; is your activity running?
body: <p>I have already gone through few forums on this error, but I don't find an solution for my problem. </p>
  
  <pre><code>Use Case:
  -&gt; Start an Activity1(Module1) -&gt; Tap on a button on Activity1 screen to Start Activity2(Module2) 
  
  -&gt; Tap on Back button on Activity2 screen-&gt; Confirm AlertDialog displayed with Yes or No option
  
  -&gt; Navigated to Activity1 screen (after YES button pressed - calling finish() to go back to previous activity/dismiss the Activity2 screen)
  
  -&gt; User is navigated to Activity 1 screen - Tap on a button(Activity1 screen) to Start Activity2 again
  
  -&gt; Tap on Back button on Activity2 screen - Noticing an error
  
  Activity1 - in Main Application (built using Cordova)
  Activity2 - Module2 
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Unable to add window -- token android.os.BinderProxy@43756de8 is not valid; is your activity running?</p>
  </blockquote>
  
  <p>But why we get this error though I launch the Activity2 again? </p>
  
  <pre><code>    Intent intent = new Intent(activity, Activity2.class);
          activity.startActivity(intent);
  
  AndroidManifest - Moduele2
            &lt;activity
              android:name=".Activity2"
              android:configChanges="screenSize|orientation"&gt;
          &lt;/activity&gt;
  </code></pre>
  
  <p>I am suppose to display the popup every time when the user taps on back on Activity2 screen. Any thoughts why I get this exception?</p>