Code example for IOException

      request.addHeader("x-wap-profile", "");
      HttpResponse response = client.execute(target, request);
      StatusLine status     = response.getStatusLine();
      if (status.getStatusCode() != 200)
        throw new IOException("Non-successful HTTP response: " + status.getReasonPhrase());
      return parseResponse(response.getEntity());
    } catch (URISyntaxException use) {
      Log.w("MmsSendHelper", use);
      throw new IOException("Couldn't parse URI.");
    } finally { 
      if (client != null)
  public static void sendNotificationReceived(Context context, byte[] mms, String apn,
                                              boolean usingMmsRadio, boolean useProxyIfAvailable)
    throws IOException 
Connect your IDE to all the code out there  Get Codota for Java