The path is wrong
String path = "image.png";
Pregunta
This code always returns null
String path = "file:///android_asset/image.png";
Drawable d = null;
try {
d = Drawable.createFromStream(ContextHolder.getActivity().getAssets().open(path), null);
} catch(Exception e) {
}
Solución
The path is wrong
String path = "image.png";
Otros consejos
Drawable d = Drawable.createFromStream(getAssets().open("image.png"), null);