Hello everybody.
I'm trying to save some data on my phone using file connection.
I added the permissions:
javax.microedition.io.Connector.file.write
javax.microedition.io.Connector.file.read
and in my app i do:
FileConnection fconn=(FileConnection) Connector.open("file:///Memory Card/"+fileName);
if(!fconn.exists())
fconn.create();
OutputStream fos=fconn.openOutputStream();
fos.write(data,0,data.length);
fos.flush();
url=fconn.getURL();
fconn.close();
But when i do Connector.open i get the following exception:
Security Exception: Permission = javax.microedition.io.Connector.file.write
I really don't know why??I can even change directory but i'm not able to write anywhere.
Can someone help me?
Thanks

Reply With Quote


