Salut, j'essaie d'afficher une image de ma sdCARD dans le contenue d'un mail comme ci dessous
De plus l'image et bien dans sont repertoire "monrepertoire" de ma sdCard
Entre mes balise H4 dans mon mail cela m'affiche bien le chemin:Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14 StringBuilder builder = new StringBuilder("<html><body style=\"background-color:#eee;padding:1px 0 0 30px;\">"); builder.append("<h4>Num : "+monEntete[1]+"</h4>"); builder.append("<h4>Date : "+monEntete[2]+"</h4><br />") ; builder.append("<h4>Nom magasin : "+monEntete[3]+"</h4>") ; String base = Environment.getExternalStorageDirectory().getAbsolutePath().toString()+ "/monrepertoire"; String imagePath = "file:///"+ base + "/Fit.jpg"; builder.append("<h4>"+imagePath+"</h4>"); builder.append("<img src=\""+ imagePath + "\" alt=\"\" width=\"168\" height=\"120\" v:shapes=\"Picture_x0020_421\" />"); builder.append("</body></html>");
mais aucune imageCode:file:////mnt/sdcard/monrepertoire/Fit.jpg
Une idée les amis
merci