| Reply | « Previous Thread | Next Thread » |
|
Hi,
I am getting SecurityException, while trying to read a file created by ME !!! Here is what I am doing (in correct order): 1) Get the last rootname from the FileSystemRegistry.listRoots() and get a file connection from it. FileConnection fconn = (FileConnection)Connector.open("file:///" + rootName + "backupFile"); if (!fconn.exists()) fconn.create(); // create the file if it doesn't exist OutputStream os = fconn.openOutputStream(); 2) After this write to the output stream 3) Flush & close outputstrem, close fileconnection. 4) Get the last rootname from the FileSystemRegistry.listRoots() and get a file connection from it. FileConnection fconn = (FileConnection)Connector.open("file:///" + rootName + "backupFile"); But then it gives "SecurityException: Access is denied" to the above file (which has been created by my application itself !!!) The question is: What is the (portable) way where I can store and retrieve a file from? (This happens after deploying the application on 6111, it works fine with S60 emulator). ANY inputs would be greatly appreciated. TIA, Abbas
Last edited by contactabbas : 2006-11-26 at 15:54.
|
| contactabbas |
| View Public Profile |
| Find all posts by contactabbas |
|
Join Date: Aug 2006
Posts: 486
Location: Rawalpindi, Pakistan
nicenouman
Offline
Regular Contributor
|
|
Regards Nouman |
| nicenouman |
| View Public Profile |
| Find all posts by nicenouman |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| .rsc file not getting created | bhargavaramudu | General Symbian C++ | 1 | 2006-10-27 07:36 |
| S60 theme questions | Nokian_Spb | Symbian Media (Graphics & Sounds) | 3 | 2006-08-17 07:11 |
| .app and .aif files not created during build | ulrichta | Carbide.c++ IDE and plug-ins | 2 | 2006-08-13 21:45 |
| could not find thread.mbg and thread.rsg | deercrane | General Symbian C++ | 3 | 2006-04-18 10:44 |
| File not created on the device? | techno2003 | Symbian User Interface | 3 | 2003-09-26 05:34 |