Salut, je veux le chemin d'accès à un fichier dans mon dossier d'actifs android.Comment puis-je obtenir le chemin du fichier d'actif en tant que chaîne?
Comment obtenir le chemin en tant que chaîne?
J'essaie avec:
String path = getClass().getClassLoader().getResource("file:///android_asset//psp.pdf").getPath();
J'ai besoin du chemin comme String.
réponse possible http://stackoverflow.com/questions/8474821/how-to-get-the-android-path-string-to-a-file-on-assets-folder. Ce n'est pas possible. –
http://stackoverflow.com/questions/4820816/how-to-get-uri-from-an-asset-file –
Copie possible de [Comment obtenir la chaîne de chemin android à un fichier sur le dossier Assets?] (Http : //stackoverflow.com/questions/8474821/how-to-get-the-android-path-string-to-a-file-on-assets-folder) –