title: Android WebRTC onIceCandidate never get called
body: <p>There are already bunch of questions on this issue but they all are related to Javascript. I am trying in Android and my <code>onIceCandidate()</code> is never get called when I call <code>setLocalDescription</code>.</p>
  
  <pre><code>private PeerConnection initPeerConnection(boolean isLocal) {
  
      MediaConstraints sdpConstraints = new MediaConstraints();
      sdpConstraints.mandatory.add(new MediaConstraints.KeyValuePair("offerToReceiveAudio", "true"));
      sdpConstraints.mandatory.add(new MediaConstraints.KeyValuePair("offerToReceiveVideo", "true"));
  
      List&lt;PeerConnection.IceServer&gt; servers = new ArrayList&lt;&gt;();
  
      return peerConnectionFactory.createPeerConnection(servers, new CustomPeerConnectionObserver() {
          @Override
          public void onIceCandidate(IceCandidate iceCandidate) {
              super.onIceCandidate(iceCandidate);
              if (isLocal)
                  onIceCandidateReceived(localPeerConnection, iceCandidate);
              else
                  onIceCandidateReceived(remotePeerConnection, iceCandidate);
          }
  
          @Override
          public void onAddStream(MediaStream mediaStream) {
              super.onAddStream(mediaStream);
              if (!isLocal)
                  gotRemoteStream(mediaStream);
          }
      });
  }
  </code></pre>
  
  <p>Creating Connections:</p>
  
  <pre><code>    localPeerConnection = initPeerConnection(true);
      remotePeerConnection = initPeerConnection(false);
  </code></pre>
  
  <p>Create offer. Now it should trigger the onIceCandidate():</p>
  
  <pre><code>localPeerConnection.createOffer(new SimpleSdpObserver() {
          @Override
          public void onCreateSuccess(SessionDescription sessionDescription) {
              Log.e("SDP", sessionDescription.description + sessionDescription.type.toString());
              localPeerConnection.setLocalDescription(new SimpleSdpObserver(), sessionDescription);
              sendOffer(sessionDescription);
          }
      }, sdpMediaConstraints);
  </code></pre>
  
  <p>But unfortunately it doesn't trigger it. What is wrong? What needs to be correct?</p>
  
  <p><strong>NOTE:</strong> Any answer specific to <strong>Android</strong> <strike>JavaScript</strike> will be much appreciated.</p>