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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -