title: Service callback throws: Uncaught remote exception! (Exceptions are not yet supported across processes.)
body: <p>I'm having some issues with my callbacks. Here is my code:</p>
  
  <p>Activity:</p>
  
  <pre><code>private ICallback callback = new ICallback.Stub() {
      @Override
      public void fire() throws RemoteException {
          mTextView.setText("fired");
      }
  };
  
  //then in onCreate i add:
  mManger.registerCallback(callback);
  </code></pre>
  
  <p>ICallback (AIDL)</p>
  
  <pre><code>interface ICallback {
      void fire();
  }
  </code></pre>
  
  <p>Manager:</p>
  
  <pre><code>public void registerCallback(ICallback callback) {
      try {
          mService.registerCallback(callback);
      } catch (RemoteException e) {
          Log.e(TAG, "Service is dead");
      }
  }
  
  private void notifyCallbacks() {
      try {
          mService.notifyCallbacks();
      } catch (RemoteException e) {
          Log.e(TAG, "Service is dead");
      }
  }
  </code></pre>
  
  <p>Service:</p>
  
  <pre><code>public void registerCallback(ICallback callback) {
      if (callback != null) {
           mCallbacks.register(callback);
      }
  }
  
  public void notifyCallbacks() {
      final int N = mCallbacks.beginBroadcast();
  
      for (int i=0;i&lt;N;i++) {
          try {
              mCallbacks.getBroadcastItem(i).fire();
          } catch (RemoteException e) {
          }
      }
      mCallbacks.finishBroadcast();
  }
  </code></pre>
  
  <p>My callbacks get notified but I run into this when it try to set the textview text:</p>
  
  <blockquote>
    <p>E/JavaBinder﹕ <em>*</em> Uncaught remote exception!  (Exceptions are not yet
    supported across processes.)
        android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.</p>
  </blockquote>