You Are Here:

Community: Developer Discussion Boards

#1 Old Accessing phone's image gallery - 2007-01-12, 12:44

Join Date: Nov 2006
Posts: 17
Location: Philippines
Send a message via Yahoo to pmgf_14
pmgf_14's Avatar
pmgf_14
Offline
Registered User
Is it possible to browse and access a mobile phone's image gallery using a MIDlet?
Reply With Quote

#2 Old Re: Accessing phone's image gallery - 2007-01-12, 13:06

Join Date: Dec 2004
Posts: 13
Location: Germany
masterfu
Offline
Registered User
Yes, it is, if your device supports JSR 75 (FileConnection API). Then you can access almost every file on your mobile, however the user will most likely have to confirm every access to the FileSystem unless you certified your MIDlet, which is quite expensive.
Reply With Quote

#3 Old Re: Accessing phone's image gallery - 2007-01-12, 13:10

Join Date: Nov 2006
Posts: 17
Location: Philippines
Send a message via Yahoo to pmgf_14
pmgf_14's Avatar
pmgf_14
Offline
Registered User
Yes I have tried using FileConnection to do that. But isn't there a specific directory in which the phone stores all the images?

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

I don't know where to look for the phone's images. I need to automatically generate a list of the images in the phone's gallery.
Reply With Quote

#4 Old Re: Accessing phone's image gallery - 2007-01-12, 13:20

Join Date: Dec 2004
Posts: 13
Location: Germany
masterfu
Offline
Registered User
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
Reply With Quote

#5 Old Re: Accessing phone's image gallery - 2007-01-12, 14:07

Join Date: Nov 2006
Posts: 17
Location: Philippines
Send a message via Yahoo to pmgf_14
pmgf_14's Avatar
pmgf_14
Offline
Registered User
Wow thanks a lot. This is really helpful for my application.
Reply With Quote

#6 Old Re: Accessing phone's image gallery - 2007-01-12, 14:10

Join Date: Dec 2004
Posts: 13
Location: Germany
masterfu
Offline
Registered User
I happened to read this document just today, so I could quickly remember where it was *g*
Reply With Quote

#7 Old Re: Accessing phone's image gallery - 2007-01-12, 14:19

Join Date: Nov 2006
Posts: 17
Location: Philippines
Send a message via Yahoo to pmgf_14
pmgf_14's Avatar
pmgf_14
Offline
Registered User
You truly are the master! MASTERFU!!
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Is MIDP2.0 over Symbian OS slow? epolitakis Mobile Java Games 7 2007-03-16 10:32
Accessing the "Tracks" gallery entries dsiorpaes Symbian Media (Graphics & Sounds) 2 2006-10-06 00:04
Nokia Image Converter davidpurdie General Discussion 0 2004-02-18 16:31
Image Uploader / Image Downloader / Image Server kehong General Symbian C++ 0 2003-05-12 18:38

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia