Thank you so much.And I have some questions:
For .map file:
i.I get the maps from the link
ii.Then I creat a graph folder by
mapsFolder = >newFile(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS),"/graphhopper/maps/");
iii. I renamed the map file to bj.map ,and then put it into /mnt/sdcard/graphhopper/maps/ , then use
GraphHopper tmpHopp = new GraphHopper().forMobile();
tmpHopp.load(new File(mapsFolder, “bj”).getAbsolutePath() + “-gh”);
And there is an error.
For the .osm file:
i. I download the map file .osm and renamed it to bj.osm , then I put it into my osmdroid folder.
GraphHopper hopper = new GraphHopperOSM().forMobile();
here is OK ,but when I go to :
It has an error:
com.example.administrator.myapplication E/AndroidRuntime: java.lang.VerifyError: com/graphhopper/reader/OSMInputFile
I want to know what is wrong in each step I try?Is that I lack some folder or some data?