i wanna get all images in the phones
and select what i wanna to add to my j2me app
can we do it?
i wanna get all images in the phones
and select what i wanna to add to my j2me app
can we do it?
Yes, you can get all the images using fileconnection api.
You can access images on the memory card by :: System.getProperty( "fileconn.dir.photos"); which will output you the path as : file:///C:/Data/Images/ .
And to access the memory card you can use : System.getProperty( "fileconn.dir.memorycard"); which will output you the path as : file:///E:
Then if you want to open the image you can use file connection API : fc = (FileConnection) Connector.open(pathUrl);
One more thing : you can use the following array to have a specific search of images :
EXTENSION = {"bmp", "BMPf", "cur", "exif", "gif", "ico", "img", "jpeg", "jpg", "png", "tif", "tiff", "xbm"};
Compare file name extension with the array.
-Regards Rupaa.
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,