# Files cannot be read in Documents directory by Android Cinder?

**URL:** https://discourse.libcinder.org/t/files-cannot-be-read-in-documents-directory-by-android-cinder/368
**Category:** Developing Cinder
**Created:** [November 2, 2016, 2:57pm UTC](https://discourse.libcinder.org/t/files-cannot-be-read-in-documents-directory-by-android-cinder/368 "2016-11-02T14:57:32Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![eight\_io](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/eight_io/32/57_2.png) [@eight\_io](https://discourse.libcinder.org/u/eight_io)
#### Post date: [November 2, 2016, 5:23pm UTC](https://discourse.libcinder.org/t/files-cannot-be-read-in-documents-directory-by-android-cinder/368/3 "2016-11-02T17:23:08Z")

</div>

Thanks @balachandran_c – I already have those.

Looking at the VideoPlayer.java

```auto
private void initialize(String filePath) {
        initializeCommon();
        try {
            AssetManager am = CinderNativeActivity.getInstance().getAssets();
            AssetFileDescriptor afd = am.openFd(filePath);
            mMediaPlayer.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
            mMediaPlayer.prepare();
        }
        catch(Exception e) {
            Log.e(TAG, "VideoPlayer.initialize(String filePath) error: " + e.getMessage());
        }
        if( null != mMediaPlayer ) {
            mMediaPlayer.setOnCompletionListener(this);
        }
    }

```

It looks like it assumes that the files are in the _assets_ directory of the app. AssetManager is managing the app’s [resources](https://developer.android.com/reference/android/content/res/AssetManager.html).

–8

---

_[View the full topic](https://discourse.libcinder.org/t/files-cannot-be-read-in-documents-directory-by-android-cinder/368)._
