Wednesday, December 26, 2012

Re: [android-developers] Re: Android Assets

On Wed, Dec 26, 2012 at 5:27 PM, Shubham Aggarwal
<shubham.1992aggarwal@gmail.com> wrote:
> In my image processing, I want to use an image stored in assets folder to
> process user's bitmap image.
> So, rather than sending the data for both I would like to send the data for
> only user's image.
>

That still doesn't make much sense, at least to me. You have to read something
from disk, Java or C doesn't usually matter, especially since some of the Java
I/O routines are done in native code anyway. What you do afterwards with that
data is another matter altogether.

At any rate, what the asset manager does it read some compressed data from
the APK, and if you look at the code for AssetManager, etc. you should be able
to reproduce it in native code, if that is really what you want. IIRC,
some (most?)
of it is natvie already. Or, just copy the thing to a regular file
using Java code on
first run an use normal fopen(), etc..

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate