title: Can't start activity from BroadcastReceiver on android 10
body: <p>I updated my OS version to android 10 last night, and since then the startActivity function inside the broadcast receiver is doing nothing. This is how I try to start the activity based on the answer of CommonsWare:</p>
  
  <pre><code>Intent i = new Intent(context, AlarmNotificationActivity.class);
  i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
  if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.Q) { // This is at least android 10...
  
                  Log.d("Debug", "This is android 10");
                  // Start the alert via full-screen intent.
                  PendingIntent startAlarmPendingIntent = PendingIntent.getBroadcast(context, 0, i, PendingIntent.FLAG_UPDATE_CURRENT);
                  String CHANNEL_ID = "my_channel_02";
                  NotificationChannel channel = new NotificationChannel(CHANNEL_ID,
                          context.getString(R.string.notification_channel_name_second),
                          NotificationManager.IMPORTANCE_HIGH);
                  NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
                  notificationManager.createNotificationChannel(channel);
                  NotificationCompat.Builder builder = new NotificationCompat.Builder(context, CHANNEL_ID)
                          .setContentTitle("Um, hi!")
                          .setAutoCancel(true)
                          .setPriority(NotificationCompat.PRIORITY_HIGH)
                          .setFullScreenIntent(startAlarmPendingIntent, true);
                  Log.d("Debug", "Try to load screen");
                  notificationManager.notify(0, builder.build());
  
              }
  </code></pre>
  
  <p>The log shows that I am getting to the notify command but nothing happens. I am asking for USE_FULL_SCREEN_INTENT permission on the manifest so I should be able to use full-screen intents.
  My app is useless now because of that issue. Does anyone know how to solve it? </p>