Jump to content

Obtenir le chemin du dossier "/ drawable" sur android studio


Recommended Posts


Je voudrais récuper l'ensemble des elements de mon dossier drawable dans un list.

Je pensais utiliser cette fonction :

File repertoire_drawable = new File("drawable");

File[] liste_des_fichiers = repertoire_drawable.listFiles();

Mais le probleme est que je n'arrive pas a recuperer le chemin du dossier drawable .


Merci d'avance !



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...