Download Uri to file
This commit is contained in:
@ -277,7 +277,7 @@ public class Transfer {
|
||||
return fileList;
|
||||
}
|
||||
|
||||
public void downloadFile(final Uri uri, String name, long fileSize, String href, Button button) throws IOException {
|
||||
public void downloadFile(final File file, String name, long fileSize, String href, Button button) throws IOException {
|
||||
|
||||
/*final LinearLayout layout = activity.findViewById(id);
|
||||
final Button button;
|
||||
@ -286,8 +286,6 @@ public class Transfer {
|
||||
else
|
||||
button = null;*/
|
||||
|
||||
final File file = new File(uri.getPath());
|
||||
|
||||
URL url = null;
|
||||
HttpURLConnection conn = null;
|
||||
int maxBufferSize = 1 * 1024 * 1024;
|
||||
|
Reference in New Issue
Block a user