I want to make the application where I can get all the images no matter whether it is in phone or in external memory. I want to import all that images in my application. How can it be possible? I came to know that it is possible through file connection. But not getting exact idea.
FileSystemRegistry.listRoots()
FileConnection fconn = (FileConnection)Connector.open(root)
fconn.list()
.file.getName().endsWith(".png")
etc), then it's an image.file.isDirectory()
returns true) then use fconn.setFileConnection(folder)
to traverse into that directory/