I recieve from Gallery via a SEND_MULTIPLE action selected preferred images. For every image I achieve an Uri like:

content://media/external/images/media/11

My intention would be to secure the chosen image. Because of this I extract in the beginning the road to the file by:

String[] proj = { MediaColumns.DATA };
Cursor actualimagecursor = context.managedQuery(uri, proj, null, null, null);
int actual_image_column_index = actualimagecursor.getColumnIndexOrThrow(MediaColumns.DATA);
actualimagecursor.moveToFirst();
String img_path = actualimagecursor.getString(actual_image_column_index);

Within this example, I recieve

/sdcard/DCIM/11.jpg

Now I can handle the file (within this situation to do file encryption).

The issue remains, that Gallery cashes pictures from the file. Therefore, I must secure them.

Because of this, I want moreover all pictures, that represent the look, the connected file pathways. How to accomplish this? I do not have encounters using the underlying database. I'd be grateful if a person could send a brief example.

It is possible to general way additional (independed from the phone)? Within the next step, I wish to extend the approach moreover video clips. It is possible to difference regarding how to handle this issue?

Thanks ahead of time!
Arik M.