I developed an Android application that takes a snapshot, calls web services and sends both documents (image and web service response) with the intent ACTION_SEND_MULTIPLE . This action requires data to be transmitted as an ArrayList<? extends Parcelable> ArrayList<? extends Parcelable> ; Therefore, the application stores data in temporary files and creates two Uri objects from them. The main drawback is that the application cannot delete these temporary files, since it is impossible to determine if the called activity was processing data.
Is it possible to send data ( byte[] data type) using ACTION_SEND or ACTION_SEND_MULTIPLE without creating temporary files?
thanks
source share