Question

When I take a picture with Android's camera app, it is inserted in the gallery with a name identical to it's creation date/time, like "2010-02-04 16.36.15.jpg"

In my app i take my own pics, and insert to the gallery them using android.provider.MediaStore.Images.Media.insertImage( ContentResolver cr, Bitmap source, String title, String description);

However, in the gallery they appear with a name that seems to be the time stamp of their creation in millis, like "1265323665851.jpg" , no matter what i put in the tittle argument.

I need them to have the same name they would get from Android's camera app, so that they will be properly ordered.

Is there a way to do so?

Thanks in advance.

Was it helpful?

Solution 2

Old question. I eventually found out the order of the pictures was about a field in the database.

OTHER TIPS

Have you seen this thread? Getting file name from camera
It should help you I guess.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top