title: Android 6.0+ Unable to resume activity , did not call finish() prior to onResume() completing
body: <p><strong>This my activity,no layout</strong>  </p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  }
  
  @Override
  protected void onStart() {
      super.onStart();
  }
  
  @Override
  protected void onResume() {
      super.onResume();
      if (getIntent().getAction().equals(NfcAdapter.ACTION_NDEF_DISCOVERED)) {
          Parcelable[] rawMsgs = getIntent().getParcelableArrayExtra(NfcAdapter.EXTRA_NDEF_MESSAGES);
          if (rawMsgs != null) {
              NdefMessage[] msgs = new NdefMessage[rawMsgs.length];
              for (int i = 0; i &lt; rawMsgs.length; i++) {
                  msgs[i] = (NdefMessage) rawMsgs[i];
              }
              runNFCTagData(msgs[0].getRecords()[0].getPayload());
              startActivity(new Intent(this, AlarmList.class));
          } else {
              Toast.makeText(this, getResources().getString(R.string.nfc_ndef_not_found), Toast.LENGTH_LONG).show();
          }
      }
  }  
  </code></pre>
  
  <p>　 Run it on android 6.0+ and it will be broken, you can see <code>Unable to resume activity</code> , did not call <code>finish()</code> prior to <code>onResume()</code>completing', but 6.0- is OK.I find a solution and it worked, but I don`t know why?  </p>
  
  <p><strong>This is my solution</strong><br>
  <code>　 @Override
      protected void onStart() {
          super.onStart();
          setVisible(true);
      }</code></p>