android - Download file to external public storage without knowing the filename -


my http-server allows downloading files 'dynamic' url: e.g. http://myserver.com/query?id=12345 give me my_song.mp3. filename indicated in content-disposition header. downloading kind of file android downloadmanager works fine want able control file being saved to. normal way call

downloadmanager.request r = new downloadmanager.request(uri); 

r.setdestinationinexternalpublicdir(string dirtype, string subpath);

unfortunately requires know filename front don't know. tried calling above function null subpath not work...


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -