sz3 / cfc

Demo/test android app for libcimbar. Copy files over the cell phone camera!
https://cimbar.org
MIT License
518 stars 68 forks source link

Could the app return the result to other app #39

Open dgod opened 1 month ago

dgod commented 1 month ago

I would like my app can start the cfc with startActivityForResult, so cfc don't save the file, but just return the data to the caller.

sz3 commented 1 month ago

It's not an easy change, but I'm hoping to move in this direction.

Specifically: the code in libcimbar reassembles the file in RAM (because that's how wirehair works) then writes to file on completion -- so this isn't a technical constraint, just an interface issue/change. Beyond being potentially helpful for other apps, returning the file in a memory buffer is also necessary (probably) for the webapp decoder.

I'm not sure what other work might be needed on the android app side afterwards. :thinking: