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

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -