Hi. deer android developers :)

I am developing an image applications.

One activity decoding image file (jpg, bmp, and so on) to byte buffer
RGB 565 or 888 type.

then want to pass image buffer to another activity for change image
data.

i have 3 activity the main decoding activity[A] and selecting effect
activity[B] and apply effect activity[C] for change image data.

if i use intent then activity[A] should make intent[1] and putExtra to
that intent.
and then [B] call getIntent and getByteArrayExtra for get byte buffer.

if user select effect then [B] make new intent[2] and putExtra to
intent[2].
and startActivityForResult with intent[2] and activity[C].

then activity[C] call getIntent to get intent[2] and getByteArrayExtra
for get byte buffer again.

there takes much times to make new byte buffer and copy from parent's
activity's byte buffer 2 times. [A]->[B] and [B]->[C]

That process drops application performance.

Questions

1. can i pass intent[1] to activity[C] without make new intent[2] and
putExtra byte buffer? by modify intent[1]. (if it works just 1 buffer
copy will perform)

2. can i use application global memory for share byte buffer? if i use
hash map how can each activity access same hash map? (if it works
don't need to copy buffer)

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