File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes Regarding FileConnection ... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Regarding FileConnection ..." Watch "Regarding FileConnection ..." New topic

Regarding FileConnection ...

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585

When i use FileConnection as follows:

Normally it keeps asking for a permission to access the file, so, is there a way to stop it ???

Thank you ...

Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Eduardo Marques
Ranch Hand

Joined: Feb 19, 2005
Posts: 231
If you turn it into a trusted MIDlet, you can request for a 'blanket' security permission. The question would only be asked once at install time or at the first MIDlet suite invocation.
In very basic terms, you need to state permissions using the MIDlet-Permissions property inside a MIDlet's suite JAD file, plus certificate attributes.

The whole subject is a too verbose to cover it here, I suggest you take a look at the MIDP 2.0 and File API specs on security permissions.

Eduardo Marques
Get ready for your SCMAD certification at - See what all the buzz is about ...
Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Thank you so much Eduardo, i will read about it now, really thanks

Good luck
I agree. Here's the link:
subject: Regarding FileConnection ...
It's not a secret anymore!