Hi friends,
In nokia 6111 phone : security exception is getting.
My code is:
String photos = System.getProperty("fileconn.dir.photos");
String path = photos + filename;
//path = "file:///C:/predefgallery/predefphotos/ In this we need to create file r not my application is untrusted
//i want untrusted application
fileconnection = (FileConnection) Connector.open(path, Connector.READ_WRITE);
if (!fileconnection.exists()) {
fileconnection.create();
//fileconnection.setHidden(true);
}
dis = fileconnection.openDataInputStream();
dos = fileconnection.openDataOutputStream();
} catch (IOException e) {
e.printStackTrace();
} catch (SecurityException e) {
e.printStackTrace();
}
regards,
chinnu

Reply With Quote



