title: FLAG_ACTIVITY_REORDER_TO_FRONT not working on some devices
body: <p>So here is what I am trying to achieve here... We have two android APKs installed on the device... Each APK can force itself to be on the foreground (This is not an app the general public will use so it's okay...)</p>
  
  <ul>
  <li>So we launch task a with activity a.  </li>
  <li>We then launch task b with activity b.  </li>
  <li>Then activity a &amp; task a wants to go to foreground (This can happen at any time)</li>
  <li>At some point later, activity a and task a wants to go to foreground</li>
  </ul>
  
  <p>So we had this code working using the following code:</p>
  
  <pre><code>Intent i = new Intent(Variables.context, HomeActivity.class);
  i.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
  startActivity(i);
  </code></pre>
  
  <p>Great! </p>
  
  <p>However, on a phone running 4.2.2 (and maybe others too) we noticed that the behavior was not as expected. The following two things can happen. </p>
  
  <p>Let's assume activity a &amp; task a is in the foreground, but want to make activity b and task b come to the foreground it does not work. </p>
  
  <p>However if no task was in the foreground and the home launcher is focused, then activity b and task b gets popped to the foreground as expected. </p>
  
  <p>Here is an example of one of my manifest from one of the applications:</p>
  
  <pre><code> &lt;activity
              android:name="some.app.id.goes.here"
              android:label="@string/app_name"
              android:screenOrientation="portrait"
              android:windowSoftInputMode="adjustPan"&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;
  </code></pre>
  
  <p>I have tried adding this line of code:</p>
  
  <pre><code>android:launchMode="singleTop"
  </code></pre>
  
  <p>and it still does not work. </p>
  
  <p>Is there anything I am missing?</p>
  
  <p>A few notes:</p>
  
  <ul>
  <li>Activity A can be ANY application, not just our developed application which rules out activity A from stopping this from happening. We had the same results using Google chrome / Google maps / Google play store.</li>
  <li>We do not override onNewIntent</li>
  </ul>