File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Access Local Folders Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Access Local Folders" Watch "Access Local Folders" New topic

Access Local Folders

Varunkumar varun

Joined: Aug 18, 2009
Posts: 3

I need a a J2ME application developed to access the folders and the files in the local mobiles.
Can any one please help me out..?

I need a application to access the files.., so that i cant fetch details and can work on that!

If those are device specific! kindly tell how to access Nokia mobile folders
Is there any special API for accessing those folders ??
Peter Miklosko
Ranch Hand

Joined: May 26, 2009
Posts: 76
All you need is to use JSR 75 - FileConnection Optional Package.
Class FileSystemRegistry registry will let you list all available roots, and though FileConnection interface you can list files available in the location and do some other things. For quick example you can have look here
Varunkumar varun

Joined: Aug 18, 2009
Posts: 3
Thank you !!
I finished doing that!! I also tried like

FileConnection connection = (FileConnection) "file:///C:/gallery/" , Connector.READ);

use to access the local folders.

Now my problem is that !While trying to open the folders an alerts is coming

"Allow Application to read data In:"

How to block this using the code!! I dont want this alert!!
I agree. Here's the link:
subject: Access Local Folders
It's not a secret anymore!