On Fri, Feb 17, 2012 at 12:50 AM, Mark Murphy <[email protected]> wrote:
> On Thu, Feb 16, 2012 at 10:21 AM, Mark Winchester <[email protected]> 
> wrote:
>> Can I access files in "assets" like they were files located in ./
>> assets/ from my native code?  When I shell into the emulator, I
>> noticed that the files aren't pushed out to the /data/data/blah...
>> folder with the library files.
>
> AFAIK, no. However, you can use JNI to call back into your app and get
> at the data from Java code, passing the results to the native code.
>

Or, to make your life simpler, just copy the assets to regular files
under /data/data/yourapp on first run. Then you can open them
with regular C functions.

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