Is there any global fix for the android_asset issue?


#1

Hi i cant find a solution to my problem, when i run ionic serve or ionic run android -l i have acces to all of my files. but when I use ionic run android \ ionic build android and runing the application on my device i dont have acces to my files.
I think its because on android the path changes: “android_asset” is adding.

is there any way to fix that?

**var marker = new google.maps.Marker({
        icon: "/img/ambulanceMarker.png",
        position: new google.maps.LatLng($rootScope.MainUserBind.lat, $rootScope.MainUserBind.lng),
        optimized: true,
        map: $rootScope.map
      });**

#2

Make the location relative, i.e. just say icon: "img/ambulanceMarker.png"?


#3

I just did, and it worcked! actually i did this:

icon: "./img/ambulanceMarker.png"?