Thank you very much. I am almost there!

I was able to read a file (test1.txt) that I created by using

 fIn = this.createPackageContext(packageName,
0).openFileInput("tes1.txt") ;

But then I tried to read a file (asset_text.txt") in the assets
folder:

fIn =  (FileInputStream) this.createPackageContext(packageName,
0).getResources().getAssets().open("asset_text.txt");

this did not work.

What's a trick to reading an asset file of a different package?

Thanks for your help.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to