| Reply | « Previous Thread | Next Thread » |
|
Hello!
I have an Nokia 6681 and I'm trying to create an directory in his memory with this code: Code:
String path = "file:///Roger_Compartilhados/";
FileConnection createDirectory= (FileConnection) Connector.open(path);
// Always check if the directory exist.
// Create the directory if it doesn't exist.
if (!createDirectory.exists()){
createDirectory.mkdir();
}
catch (Exception ex) {
screen.showAlert("Error!", ex.getMessage(), 0, null, "img");
}
"Opening a connection failed: -5" Somebody knows what this can be? Thanks in advance! Roger. |
| roger.kock |
| View Public Profile |
| Find all posts by roger.kock |
|
Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
Offline
Super Contributor
|
|
hi Roger,
shouldn't your path be constructed taht way? Code:
String path = System.getProperty("fileconn.dir.memorycard")+"Roger_Compartilhados/";
regards, peter |
| peterblazejewicz |
| View Public Profile |
| Find all posts by peterblazejewicz |
|
Hello Peter, thanks for the answer.
Yes, it is thrown within exception. I'll try your code and post here the results. Thank you very much again! :-) Roger. |
| roger.kock |
| View Public Profile |
| Find all posts by roger.kock |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Series 60 Concept Emulator (SDK Beta 0.2 Linux) not working | mattbee | Mobile Java Tools & SDKs | 1 | 2003-06-10 12:43 |