java.io.FileNotFoundException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

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!

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

  • App crashes on start
    via GitHub by DhavalsShah
    ,
  • Unzippping downloaded file from URL in android
    via Stack Overflow by coder
    ,
  • access denied
    via GitHub by dmha
    ,
  • GitHub comment 28#29195665
    via GitHub by leventepal
    ,
  • No toasts, but errors in logcat
    via GitHub by dalb8
    ,
    • 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)

    Users with the same issue

    bluebunntybluebunnty
    29 times, last one,
    Avinash8989Avinash8989
    1 times, last one,
    Saravana Kumar ChinnarajSaravana Kumar Chinnaraj
    1 times, last one,
    SacchiSacchi
    3 times, last one,
    Unknown UserUnknown User
    1 times, last one,
    96 more bugmates