aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Regarding FileConnection ..." Watch "Regarding FileConnection ..." New topic
Author

Regarding FileConnection ...

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585
Hallo,

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 J2MECertificate.com - 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: http://aspose.com/file-tools
 
subject: Regarding FileConnection ...