title: startActivity() in broadcast receiver bag(?)
body: <p>I'm trying to start MainActivity with BluetoothDevice.ACTION_ACL_CONNECTED receive just like in some stack overflow answers</p>
  <pre><code>public class BTReceiver extends BroadcastReceiver {
  
      @Override
      public void onReceive(Context context, Intent intent) {
          Log.d(&quot;BT&quot;, &quot;Receive&quot;);
          String action = intent.getAction();
          ...
          switch (action) {
              case BluetoothDevice.ACTION_ACL_CONNECTED:
                  Intent i = new Intent();
                  i.setClassName(&quot;com.opendashcam&quot;, &quot;com.opendashcam.MainActivity&quot;);
                  i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                  context.startActivity(i);
  
          }
      }
  }
  </code></pre>
  <p>And like this</p>
  <pre><code>Intent intent1 = new Intent(context, MainActivity.class);
  intent1.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  context.startActivity(intent1);
  </code></pre>
  <p>But all that I can see it's just these logs (first two say that receive was gotten and activity was started with connection to written MAC)</p>
  <pre><code>D/BT: Receive
  D/BT: started app with 00:14:41:1E:26:27
  I/Timeline: Timeline: Activity_launch_request time:129879532
  </code></pre>
  <p>My Main Activity's onCreate:</p>
  <pre><code>public class MainActivity extends Activity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          Log.d(&quot;MA&quot;, &quot;Started app&quot;);
          init();
      }   
  </code></pre>