Skip to content

Instantly share code, notes, and snippets.

@phuongcv1112
phuongcv1112 / RestrictedSocketFactory.java
Created August 7, 2016 12:01 — forked from slightfoot/RestrictedSocketFactory.java
Fix for upload progress monitoring in Android.
package com.wistla.wistla.util;
import android.util.Log;
import java.io.IOException;
import java.net.InetAddress;
import java.net.Socket;
import java.net.SocketException;
import java.net.UnknownHostException;