import com.google.android.gcm.server.Sender;
public class GCMProxySender extends Sender {
@Override
protected HttpURLConnection getConnection(String url) throws IOException {
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(this.getProxyHost(), this.getProxyPort()));
HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection(proxy);
return conn;
}