I'm starting to develop an application with mapsforge, I started with the basic example application ( link ).
I am developing with android studio version 1.3.1 and jdk 1.8.0, in windows 7.
I am using the same map that says the example, which I have stored in the phone memory as indicated by the example.
The problem is that when running the application from AS on the phone, it stops its execution and closes. The AS log says it can not find the map, the error is as follows:
E/MapFile﹕ cannot read file: /storage/emulated/0/berlin.map
org.mapsforge.map.reader.header.MapFileException: cannot read file: /storage/emulated/0/berlin.map
at org.mapsforge.map.reader.MapFile.<init>(MapFile.java:227)
at org.mapsforge.map.reader.MapFile.<init>(MapFile.java:205)
at com.example.luis.mapsforge.MainActivity.onCreate(MainActivity.java:46)
at android.app.Activity.performCreate(Activity.java:6272)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)
at android.app.ActivityThread.access$900(ActivityThread.java:157)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1356)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5530)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)