How to get the android String PATH to a file on drawable folder?

前端 未结 1 507
青春惊慌失措
青春惊慌失措 2021-01-29 04:55

I\'m trying to display locally stored maps with a api to show maps.

I need to know the string path to a map file stored on drawable folder, because i\'m using a map api

1条回答
  •  一个人的身影
    2021-01-29 05:33

    I need to know the string path to a map file stored on drawable folder

    There is no "string path to a map file stored on drawable folder", because there is no "drawable folder" except on your development machine.

    Wich is the correct string path file to the file bremen.map stored on my drawable folder?

    There is none.

    Since MapView does not have setMapFile(), I am assuming you are using some third party implementation. If so, and that implementation is open source, modify it to support a Uri in addition to its existing support of a path.

    Otherwise, copy the drawable resource to a file first, then supply a path to that file.

    0 讨论(0)
提交回复
热议问题