title: Android BroadcastReceiver onReceive() called twice on android 4.0
body: <p>I faced to one problem on android 4.0.3 (on 4.1.2 it works fine).
  I have in my Activity BroadcastReceiver. When I send a broadcast, method onReceive() called always twice. Please give me any suggestions about BroadcastReceiver differences on 4.0 and 4.1</p>
  
  <pre><code>private final GcmBroadcastReceiver gcmReceiver = new GcmBroadcastReceiver() {
  
      @Override
      public void onReceive(Context context, Intent intent) {
          final String action = intent.getAction();
          if (action != null &amp;&amp; action.equals(MyBroadcastReceiver.ACTION)) {
              Log.d("tag", intent.getStringExtra("alert"));
              }
          }
      };
  
  };
  
  
  @Override
  protected void onPause() {
      unregisterReceiver(gcmReceiver);
      super.onPause();
  }
  
  @Override
  protected void onResume() {
      super.onResume();
      registerGcmReceiver();
  }
  
  private void registerGcmReceiver() {
      IntentFilter filter = new IntentFilter(MyBroadcastReceiver.ACTION);
      filter.setPriority(2);
      filter.addCategory("com.android.mypackage");
      registerReceiver(gcmReceiver, filter);
  }
  </code></pre>