Is there any way to load the txt file in android app code without writing it in the android device?
<p><strong>What I do:</strong></p>

<p>1.I have a simple facedetection code in which I load a xml file(or txt file).</p>

<p>2.For that first I write the xml in the device and then loaded in the application.</p>

<p>3.Sample code I used to write </p>

<pre><code>InputStream is = getResources().openRawResource(R.raw.haarcascade_frontalface_alt);
File cascadeDir = getDir("cascade", Context.MODE_PRIVATE);
mCascadeFile = new File(cascadeDir, "haarcascade_frontalface_alt.xml");
FileOutputStream os = new FileOutputStream(mCascadeFile);

byte[] buffer = new byte[4096];
int bytesRead;
while ((bytesRead = is.read(buffer)) != -1) {
    os.write(buffer, 0, bytesRead);
}
is.close();
os.close();
</code></pre>

<p>4.From the above code the xml is writtern in the data/data folder in device</p>

<p><strong>What I need to do:</strong></p>

<p>1.I need to load the xml in the app in such a way that others cannot able to find which xml is loaded(may be using the jar file)</p>

<p>Is there any way to do so?</p>

<p><strong>UPDATE:</strong></p>

<p>I am planning to share my project as SDK,I want to hide the xml which I used from other users</p>

<p>We cannot able to access the xml file from the raw folder because we calling it from the native library.so we are loading it from data/data folder</p>