java.io.FileNotFoundException

/storage/emulated/0/osmand/poi_types.xml: open failed: ENOENT (No such file or directory)

Samebug tips1

Before using FileOutputStream check that there's no directory or file with the same name you're trying to use. Trying to remove it works as well. Try using FileAsyncHttpResponseHandler(context) as well!


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web230

  • via GitHub by DhavalsShah
    ,
  • via Stack Overflow by coder
    ,
  • Stack trace

    • java.io.FileNotFoundException: /storage/emulated/0/osmand/poi_types.xml: open failed: ENOENT (No such file or directory) at libcore.io.IoBridge.open(IoBridge.java:452) at java.io.FileInputStream.<init>(FileInputStream.java:76) at java.io.FileInputStream.<init>(FileInputStream.java:103) at net.osmand.osm.MapPoiTypes.init(MapPoiTypes.java:267) at net.osmand.core.samples.android.sample1.SampleApplication.initPoiTypes(SampleApplication.java:55) at net.osmand.core.samples.android.sample1.SampleApplication.onCreate(SampleApplication.java:32) at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:369) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1013) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4712)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    bluebunntybluebunnty
    29 times, last one
    Avinash8989Avinash8989
    Once,
    Saravana Kumar ChinnarajSaravana Kumar Chinnaraj
    Once,
    SacchiSacchi
    332 times, last one
    filipebatistafilipebatista
    Once,
    97 more bugmates