Accessing phone's image gallery

Is it possible to browse and access a mobile phone's image gallery using a MIDlet?
[90 byte] By [paoloferrera] at [2007-11-26 14:56:16]
# 1
jsr75
suparenoa at 2007-7-8 8:44:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

Ok.. so you use FileConnection? In FileConnection you need a string to determine which directory or folder you are accessing. What filepath do I need to use in order to get to the mobile phone's gallery?

example:

FileConnection fc = (FileConnection)Connector.open("<directory here>")

paoloferrera at 2007-7-8 8:44:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
search on google : FileConnection API http://forum.nokia.com/info/sw.nokia.com/id/de0f933c-0bd3-4143-b62a-ab867a43409a/MIDP_FileConnection_API_Developers_Guide_v2_0_en.zip.html http://www.j2medev.com/api/fileconnection/index.html
suparenoa at 2007-7-8 8:44:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
Well thanks. Although the reason I posted here was because I can't find it out there. But thanks nonetheless.
paoloferrera at 2007-7-8 8:44:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5
but, if you have downloaded a WTK (2.2 or 2.5), you can browse the MIDlet demos from the WTK and you will see a demo using JSR 75...:-)
suparenoa at 2007-7-8 8:44:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6
Oh ok. I have seen that an example of a file url on a series 60 device is:"file:///C:/data/Images/Image(001).jpg"I was wondering if this URL will work on any series 60 device? Will I be able to view the said image using this URL?
paoloferrera at 2007-7-8 8:44:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 7
i don't know how the hd is called under Nokia !
suparenoa at 2007-7-8 8:44:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 8

I have posted a similar question to a different discussion board and this is what "masterfu" posted:

Posted by masterfu:

"Okay, so you want the device to tell you where it's default place for images is?

You can query this by calling

Code:

String imageHome = System.getProperty("fileconn.dir.photos");

There are also quite a lot of other properties you can query using this method, for an overview see http://www.forum.nokia.com/info/sw.n..._2_en.zip.html"

I hope this works though.

paoloferrera at 2007-7-8 8:44:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 9
you can try to display all the system properties to see if this property exists...
suparenoa at 2007-7-8 8:44:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...