Thursday, 15 January 2015

How to tell when a shared file has been consumed by the shared app in android -



How to tell when a shared file has been consumed by the shared app in android -

in application, sharing images using intent.createchooser() mechanism. images, displayed on device, not in best resolution , prior sharing, app fetches total resolution images server. file paths these total resolution images sent shared app. when sharing done, want delete these images. when sharing application returns command application via onactivityresult(), delete total resolution files, applications (gmail, yahoo mail, fb messenger) have consumed these files, whereas others (android mail, fb) have not, , becomes race status between code deleting these files , fb fetching these files upload. , 9 out of 10, fb upload fails. when not delete these files, fp upload successful. since these temporary files, need delete them or storage become full.

i thought using app's cache space, automatically cleaned os on needed basis, app's cache not accessible external applications; thus, sharing fails.

how handle issue?

thank you, gary

android

No comments:

Post a Comment