android - Get file name from package folder in the External Storage -
in app download different extensions of file android download manager class .
this download manager code (in onbindviewholder) :
//=============btn download click listener ========================= holder.btndownload.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { downloadmanager downloadmanager = (downloadmanager) context.getsystemservice(context.download_service); downloadmanager.request request = new downloadmanager.request(uri.parse(questionha.get(position).getquestiondownlink())); request.settitle(questionha.get(position).getquestiontitle()); request.setdescription("downloading ..."); request.setdestinationinexternalfilesdir(v.getcontext(), "downloaded", questionha.get(position).getquestiondownfilename()); long enqueueid = downloadmanager.enqueue(request); } });
as can see in code ,i save file in external storage .
android > data > package name > files > downloaded
know question how can file name in path , show theme in recyclerview ?
Comments
Post a Comment