On Sat, Mar 19, 2011 at 1:25 AM, kypriakos <demet...@ece.neu.edu> wrote:
> What is the easiest way to allow multiple apps to read from the assets
> directory of
> a particular app?

It's automatic, AFAIK. Leastways, it is with regular resources, and
you get at assets via the Resources object, so it probably works.

Use one of the getResourcesFor*() methods on PackageManager.

> Do I need to use shared IDs here?

You shouldn't.

> And where is the
> actual assets
> dir residing in the device? Is it in the app's database db file?

Assets are never "in the app's database db file". They remain packaged
in the APK, at least for traditional installs in the on-board flash. I
forget what happens for the install-to-external-storage path.
Regardless, you don't access them that way.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in Oslo: http://bit.ly/fjBo24

-- 
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

Reply via email to