public class DownloadThread extends Object
| Constructor and Description |
|---|
DownloadThread(DownloadInfo info,
DownloaderService service,
DownloadNotification notification) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.HttpHost |
getPreferredHttpHost(android.content.Context context,
String url)
Returns the preferred proxy to be used by clients.
|
void |
run()
Executes the download in a separate thread
|
public DownloadThread(DownloadInfo info, DownloaderService service, DownloadNotification notification)
public org.apache.http.HttpHost getPreferredHttpHost(android.content.Context context,
String url)
android.net.Proxy#getHost(). Currently no proxy will be
returned for localhost or if the active network is Wi-Fi.context - the context which will be passed to
android.net.Proxy#getHost()url - the target URL for the requestpublic void run()
Copyright © 2012–2014 simpligility technologies inc.. All rights reserved.