tags:

views:

39

answers:

0

What I'm trying to do is load files from the Assets folder in App2 and have App1 output the data from App2. Say for instance it's sound files.

App1 is already installed on the device and is listening for calls from other packages. App2 gets installed, the data from the asset folder is read and loaded into App1 to be used. I'm having a couple of problems with this though..

1) Is there a way to load the entire assets folder without having to declare each item? I know how to do it for individual items but I'm looking for some way to just load the entire folder (or sub-folders) with minimal coding to save on the file size.

2) How can I implement the data to be used by App1 once it's loaded from App2? I thought perhaps either something with ContentProvider or PackageManager would be the best way but I'm not overly sure how to implement it.

Yes I know I could use the res folder for whatever but the benefit of the asset folder is to be able to have sub-directories which is what I need.

Edit: My wording seems a bit off but when I say loaded into App1 I mean App1 has access to it since it's open to calls from other packages and from there it is run via App1..sorta like a plugin