# SelectFile library generates a “FATAL EXCEPTION: main” error

**URL:** <https://discourse.processing.org/t/selectfile-library-generates-a-fatal-exception-main-error/30175>\
**Category:** Processing for Android\
**Created:** [May 19, 2021, 6:50pm UTC](https://discourse.processing.org/t/selectfile-library-generates-a-fatal-exception-main-error/30175 "2021-05-19T18:50:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [May 20, 2021, 12:05pm UTC](https://discourse.processing.org/t/selectfile-library-generates-a-fatal-exception-main-error/30175/2 "2021-05-20T12:05:38Z")

</div>

Not sure as i havent used the lib, here is an alternative though.

> [@fileInput class android, pick Folder or File](https://discourse.processing.org/t/fileinput-class-android-pick-folder-or-file/30148):
>
> Here is a class to handle file input in android. here is the base sketch; 
> 
> > **Summary**
> >
> > import android.app.Activity; import android.content.Intent; import processing.core.PApplet; import android.os.Bundle; import android.os.Environment; import android.content.Context; import android.provider.MediaStore; import android.net.Uri; import android.graphics.BitmapFactory; import android.database.Cursor; import android.os.Build.VERSION\_CODES; import android.os.Build; import android.graphics.Bitmap; fileInp…

---

_[View the full topic](https://discourse.processing.org/t/selectfile-library-generates-a-fatal-exception-main-error/30175)._
