Android Question How to rename image array?


Licensed User
Longtime User
Hi All,
Images taken by the camera have a specific naming method or convention, such as 123333334.jpg
Other images downloaded or copied from the computer have their original names.. such as abc.jpg
problem is:
I want to create an array (0 to n) of all images in the camera so they can have the names : 0.jpg, 1.jpg.... and so on..
Any one can help with a function that does this?
Thanks in advance.

James Chamblin

Active Member
Licensed User
Longtime User
Maybe create a list. Scan the phone for .jpg files. When one is found, enter the path, file name, and date created into the list. When all files are found, sort the list by date created. Then iterate through the list and rename all the files, using a counter to keep track of the next number to be used.
Upvote 0