0
我正在使用此代碼從Uri下載歌曲。如何更改下載的默認文件夾(瀏覽器)?
String url = "url of song that will download";
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(url));
Download.this.startActivity(intent);
Download.this.finish();
Toast.makeText(Download.this,
"The file you are downloading will be saved in your SD Card downloads folder.",
Toast.LENGTH_LONG).show();
默認情況下,我保存在SDCards /下載歌曲folder.i想保存我的歌曲SDCards /設備文件夾。
請告訴我,我如何以編程方式更改瀏覽器的下載路徑。
在此先感謝。