3

I want to get memory card path from device. By using following statement we can get path but i want to know is this method will work for all manufactures or only for nokia?

 System.getProperty("fileconn.dir.memorycard");  
Sandeep
  • 2,573
  • 3
  • 21
  • 28

3 Answers3

2

It will work for many manufacturers and many of their phones, but not all so your app should be prepared for situations where this call will return nothing or just wrong URL.

Ales
  • 168
  • 9
1

I think that you can take a look here. FileConnection

Don't forget to put the permissions to write and read from file, in the jad manifest.

Mun0n
  • 4,438
  • 4
  • 28
  • 46
1

I want to get memory card path from device. By using following statement we can get path but i want to know is this method will work for all manufactures or only for nokia?

System.getProperty("fileconn.dir.memorycard");

Yes, this method will work for all manufactures, Samsung, LG, Sony...etc

Thanh Le
  • 763
  • 4
  • 13
  • I just tried it in the Java ME Platform SDK 3.0, and it returned null. Now that may be because the External Events Generator doesn't distinguish whether mounted filesystems are memory cards or some other form of storage; but it's worth noting that your app won't work in the emulator if you rely on this property. – LarsH Jan 24 '15 at 01:04