title: How to fix Calling a method in the system process without a qualified user this error in the system android application?
body: <p>In the settings application I'm trying to receive message about changing network status.
  It looks like this:</p>
  
  <pre><code> &lt;receiver android:name="com.android.settings.NetworkStateReceiver"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.net.conn.CONNECTIVITY_CHANGE"/&gt;
          &lt;/intent-filter&gt;
   &lt;/receiver&gt;
  
  
  
  public class NetworkStateReceiver extends BroadcastReceiver
  {
    public static final String TAG = "NetworkStateReceiver";
    public static final String NETWORK_CHANGED_ACTION = "com.android.settings.NetworkStateReceiver.NETWORK_CHANGED";
  
    @Override
    public void onReceive( Context context, Intent intent )
    {
        Log.d(TAG, "Network state changed");
        Intent i = new Intent();
        i.setAction(NETWORK_CHANGED_ACTION);
        context.sendBroadcast(i);
    }
  }
  </code></pre>
  
  <p>From this receiver I'm trying to send message to DeviceInfoFragment, there is receiver, which should catch this broadcast:</p>
  
  <pre><code> private BroadcastReceiver mNetwrokStateReceiver = new BroadcastReceiver() {
      @Override
      public void onReceive(Context context, Intent intent) {
  
          Log.d("NetworkStateReceiver_DEVICE_INFO", "network state changed");
          if (isNetworkConnected()) {
              Log.d("NetworkStateReceiver_DEVICE_INFO", "network connected");
              mHelpPreference.setEnabled(true);
          } else {
              mHelpPreference.setEnabled(false);
              Log.d("NetworkStateReceiver_DEVICE_INFO", "network disconnected");
          }
      }
  };
  </code></pre>
  
  <p>I register it in onResume and unregister in onPause.</p>
  
  <p>But I got error in <strong>NetworkStateReceiver</strong> in this line:</p>
  
  <pre><code>context.sendBroadcast(i);
  </code></pre>
  
  <p>Calling a method in the system process without a qualified user</p>
  
  <p>Is there is any way to fix it?</p>