I am trying to read the same file "xmlfile.xml" from the assets folder, as well as another copy from the sdcard / download / sd card.
I can read from the SD card:
- unfile Return True
- Esite return true
I can not read from the Properties folder:
- unfile Return False
- Esite Return False
This code does not work
File source = new File("file:///android_asset/xmlfile.xml"); boolean unfile = source.isFile(); boolean Esiste = source.exists(); try {
This code is il Working
File source = new File("/sdcard/" + "download" + "/" + "xmlfile.xml"); boolean unfile = source.isFile(); boolean Esiste = source.exists(); try {
can someone explain to me how I can read a file from the Assets folder.
thanks marco
android xml android-assets
marcoqf73
source share