android - How to place file in app directory via USB -


i'm writing app reads local file

...     file fxmlfile = new file(file);     documentbuilderfactory dbfactory = documentbuilderfactory.newinstance();     documentbuilder dbuilder = dbfactory.newdocumentbuilder();     document doc = dbuilder.parse(fxmlfile); ... 

i want place file app's directory can commence testing. outputting exception find out java.io.filenotfoundexception /data/data/com.blablabla.myapp/files/sample_file.xml: open failed. enoent (no such file or directory).

i'm confused find directory /data/data/... i've connected phone via usb , did find /android , /data directories. i've created directory com.blablabla.myapp/files/ , added sample_file.xml there continue getting error.

what doing wrong? appreciated.

i tried looking file on internal storgage. turns out can see when connected via usb/mtp protocol external storage. such, unable place file read statement find it. making adjustment app looks file made difference.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -