Android load local xml file
问题 I'm working with Eclipse. Does anybody know where this piece of code tries to get the file from? I've copied my files to the project folder and also the srr/package_path folder. public String getFromFile(ASerializer aserializer) { String data = new String(); try { FileInputStream stream = new FileInputStream(new File(aserializer.toLocalResource())); FileChannel fc = stream.getChannel(); MappedByteBuffer bb = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size()); /* Instead of using default,