title: Broadcast receiver in a separate process
body: <p>Hi i have developed a android app. It contain a service with separate process. I want communicate from my service to MainActivity. If i not use a separate process it work, but if make a separate process, MainActivity doesn't receive broadcast.
  Here , Manifest:</p>
  
  <pre><code>application
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:supportsRtl="true"
      android:theme="@style/AppTheme"&gt;
      &lt;activity android:name=".MainActivity"
          android:screenOrientation="portrait"&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;receiver android:name=".BluetoothLeService$MyReceiver"/&gt;
  
      &lt;service android:name=".BluetoothLeService"
          android:enabled="true"
          android:exported="true"
          android:process=":service"/&gt;
  </code></pre>
  
  <p>This is in my Service:</p>
  
  <pre><code>    public void sendResult(String message) {
      Intent intent = new Intent("ui");
      if(message != null)
          intent.putExtra("updateui", message);
      broadcaster.sendBroadcast(intent);
  }
  </code></pre>
  
  <p>MainActivity:</p>
  
  <pre><code>    @Override
  protected void onStart() {
      super.onStart();
      LocalBroadcastManager.getInstance(this).registerReceiver((receiver),
              new IntentFilter("ui")
      );
  }
  
  @Override
  protected void onStop() {
      LocalBroadcastManager.getInstance(this).unregisterReceiver(receiver);
      super.onStop();
  }
  ...
  ......
  
  receiver = new BroadcastReceiver() {
          @Override
          public void onReceive(Context context, Intent intent) {
              String s = intent.getStringExtra("updateui");
              Log.d("stringa s ",s);
              if(s.equals("1")) set_color();
      }
  }
  </code></pre>
  
  <p>how i edit my code for my separate process???
  Thank you</p>
  
  <p>SOLVED: I have removed the localbroadcast!!</p>