title: Sending non-protected broadcast com.motorola.motocare.INTENT_TRIGGER java.lang.Throwable
body: <p>I have searched different answers on stack overflow. It shows the error even if I disable the services and broadcast receivers.</p>
  
  <p>This is my Manifest file:-</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
  package="com.appzoy.croatiaapp"&gt;
  
  &lt;!-- to make api calls --&gt;
  &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
  &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;!-- for qr code scanning --&gt;
  &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
  
  &lt;application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:roundIcon="@mipmap/ic_launcher_round"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"
      android:fullBackupContent="@xml/backup_descriptor"&gt;
      &lt;activity
          android:name=".MainActivity" /&gt;
      &lt;activity android:name=".LoginActivity" /&gt;
      &lt;activity
          android:name=".TicketsListActivity"
          android:theme="@style/AppTheme.NoActionBar"
          android:windowSoftInputMode="stateHidden" /&gt;
      &lt;activity android:name=".SplashActivity"&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;
      &lt;activity android:name=".SettingsActivity"
         android:theme="@style/AppTheme.NoActionBar"&gt;&lt;/activity&gt;
      &lt;receiver android:name=".receivers.AlarmReceiverSubmit"
          android:exported="false"
          android:enabled="true"/&gt;
  
      &lt;service android:name=".services.AlarmService"
          android:exported="false"
          android:enabled="true"/&gt;
  
      &lt;receiver android:name=".receivers.NetworkChangeReceiver"
          android:exported="false"
          android:enabled="true"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.net.conn.CONNECTIVITY_CHANGE"/&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>Whenever I close the navigation drawer <code>SettingsActivity</code> appears to foreground and this is the activity where I set the alarm using this code:- </p>
  
  <pre><code> private void setAlarm(Calendar calSet) {
  
      Toast.makeText(this, "Alarm is set @ " + calSet.getTime(), Toast.LENGTH_SHORT).show();
  
      Intent intent = new Intent(getBaseContext(), AlarmService.class);
      PendingIntent pendingIntent = PendingIntent.getService(getBaseContext(), 1, intent, 0);
      AlarmManager alarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
      alarmManager.setInexactRepeating(AlarmManager.RTC_WAKEUP, calSet.getTimeInMillis(),AlarmManager.INTERVAL_DAY, pendingIntent);
  }
  
  private void setAlarmSubmitTickets(Calendar calSet) {
  
      Toast.makeText(this, "Alarm is set @ " + calSet.getTime(), Toast.LENGTH_SHORT).show();
  
      Intent intent = new Intent(getBaseContext(), AlarmReceiverSubmit.class);
      intent.putExtra("selectedTime", txtSendTicketsTime.getText().toString());
      PendingIntent pendingIntent = PendingIntent.getBroadcast(getBaseContext(), 1, intent, 0);
      AlarmManager alarmManager = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
      alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calSet.getTimeInMillis(),AlarmManager.INTERVAL_DAY, pendingIntent);
  }
  </code></pre>
  
  <p>And my <strong>Log</strong> file is as follows :-</p>
  
  <blockquote>
    <p>03-13 10:12:48.253 1576-22821/? E/ActivityManager: Sending non-protected broadcast com.motorola.motocare.INTENT_TRIGGER from system 4512:com.motorola.process.system/1000 pkg com.motorola.motgeofencesvc
                                                           java.lang.Throwable
                                                               at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:18226)
                                                               at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:18826)
                                                               at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:512)
                                                               at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2906)
                                                               at android.os.Binder.execTransact(Binder.java:565)</p>
  </blockquote>