How to show images from android storage


#1

I am using the command ionic cordova run android --c . Images loaded from my web server are shown correctly like <ion-img src="/accountfiles/ac_{{accountid.ac_id}}/students/student_{{student.id}}.png"></ion-img>
But images from android emulator storage do not
<ion-img src="file:///data/data/io.ionic.starter/files/1526441731794.jpg" style="width: 100%" ></ion-img>

if I remove --c
this <ion-img src="/accountfiles/ac_{{accountid.ac_id}}/students/student_{{student.id}}.png"></ion-img>
does not work
but this does <ion-img src="file:///data/data/io.ionic.starter/files/1526441731794.jpg" style="width: 100%" ></ion-img> .
Why is this happening? How can I make them work both at the same time on my android emulator and hopefully on my device?