public static void main(String[] args) {
String fileURL = "
http://jdbc.postgresql.org/download/postgresql-9.2-1002.jdbc4.jar";
String saveDir = "/storage/emulated/0/Download";
try {
HttpDownloadUtility.downloadFile(fileURL, saveDir);
} catch (IOException ex) {
ex.printStackTrace();
}
}
다운로드 테스트 할려고 해놧는데 다운로드가 안되네요...
제가 퍼미션을 안넣엇는지...
11-03 20:15:18.071: I/Timeline(9019): Timeline: Activity_launch_request id:org.racs.hs.utubetest time:25473176
11-03 20:15:18.101: V/ActivityThread(9019): updateVisibility : ActivityRecord{328d9d5e token=android.os.BinderProxy@2573653 {org.racs.hs.utubetest/org.racs.hs.utubetest.StartActivity}} show : false
11-03 20:15:18.111: D/Activity(9019): performCreate Call Injection manager
11-03 20:15:18.111: I/InjectionManager(9019): dispatchOnViewCreated > Target : org.racs.hs.utubetest.HttpDownloader isFragment :false
11-03 20:15:18.111: D/PhoneWindow(9019): *FMB* installDecor flags : 8454400
11-03 20:15:18.121: D/SecWifiDisplayUtil(9019): Metadata value : SecSettings2
11-03 20:15:18.131: D/PhoneWindow(9019): *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
11-03 20:15:18.131: D/PhoneWindow(9019): *FMB* isFloatingMenuEnabled return false
11-03 20:15:18.141: D/SRIB_DCS(9019): log_dcs ThreadedRenderer::initialize entered!
11-03 20:15:18.141: D/mali_winsys(9019): new_window_surface returns 0x3000, [1440x2560]-format:1
11-03 20:15:18.141: I/InjectionManager(9019): dispatchCreateOptionsMenu :org.racs.hs.utubetest.HttpDownloader
11-03 20:15:18.141: I/InjectionManager(9019): dispatchPrepareOptionsMenu :org.racs.hs.utubetest.HttpDownloader
11-03 20:15:18.151: I/Timeline(9019): Timeline: Activity_idle id: android.os.BinderProxy@3eb722be time:25473256