title: requestRouteToHost(int networkType, int hostAddress) is not working in 6.0
body: <p><strong>requestRouteToHost(int networkType, int hostAddress)</strong></p>
  <p>This method was <strong>deprecated</strong> in API level 21. Deprecated in favor of the</p>
  <p><strong>requestNetwork(NetworkRequest, NetworkCallback)</strong></p>
  <p><strong>bindProcessToNetwork(Network)</strong>
  and <strong>getSocketFactory()</strong></p>
  <p>API. In <strong>M</strong>, and above, this method is unsupported and will throw UnsupportedOperationException if called. <a href="http://developer.android.com/reference/android/net/ConnectivityManager.html" rel="nofollow noreferrer">Reference of Android Docs</a></p>
  <p>Android official site dont have any implementation as a alternative of <strong>requestRouteToHost(int networkType, int hostAddress)</strong></p>
  <p>I google and found this</p>
  <pre><code>       if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.LOLLIPOP) {
          
                    ConnectivityManager connMgr = (ConnectivityManager) this
                          .getSystemService(Context.CONNECTIVITY_SERVICE);
          
                      NetworkRequest.Builder builder = new NetworkRequest.Builder();
        
                      //what Capability i have to add for 
                      **requestRouteToHost(int networkType, int hostAddress)** implementation.
                      builder.addCapability(NetworkCapabilities.NET_CAPABILITY_MMS);
                      builder.addTransportType(NetworkCapabilities.TRANSPORT_CELLULAR);
               
                      NetworkRequest networkRequest = builder.build();
                      connMgr.requestNetwork(networkRequest, new ConnectivityManager.NetworkCallback() {
          
                          @Override
                          public void onAvailable(Network network) {
                              super.onAvailable(network);
                              //  sendNormalMms();
                              try {
                                  int y = Integer.parseInt(apns.get(0).MMSPort);
                                  HttpUtils.httpConnection(mContext, 4444L,
                                          apns.get(0).MMSCenterUrl, bytesToSend,
                                          HttpUtils.HTTP_POST_METHOD,
                                          !TextUtils.isEmpty(apns.get(0).MMSProxy),
                                          apns.get(0).MMSProxy, y);
          
                              } catch (Exception e) {
                              }
                          }
                      });
  </code></pre>
  <p><strong>Issue:</strong> Connectivity is not getting ready to send MMS
  curser is not getting on <code>OnAvalabile();</code></p>
  <p>Is this the right to ready decive to send MMS?</p>