On Sun, Dec 4, 2011 at 1:23 AM, Saied <saie...@gmail.com> wrote: > > 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?
Do tell us the actual error/stacktrace, but this is probably impossible. Assets are not actual files, stored in the app's directory, and I don't think there is no way to set permissions or read them from another application. If you need to share files copy/extract them to the SD card (external storage), or just spend some time on writing an ContentProvider. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en