Reputation: 21
String initDir = System.getProperty("fileconn.dir.photos");
when i use it the way above, I just read the directory images in phone memory. How that can read image files contained on the SDCard?
some ways I have ever tried as follows but can't to read SDCard:
String initDir = System.getProperty("file:///SDCard/");
String initDir = System.getProperty("file:////");
Is there any other way to read SD Card Details ?
Upvotes: 2
Views: 1276
Reputation: 29670
You can try to read as E:
, SDCard is formed as E:
in Nokia Mobile, while C:
is phone memory.
Upvotes: 0
Reputation: 12112
The solution lies in the FileConnection Optional Package, this package enables J2ME-based applications to create, read, and write files and directories located on mobile devices and external memory cards. More about how to do this is available from the given link.
Upvotes: 2