This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
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
Consider Paul's rocket mass heater.
subject: Regarding FileConnection ...
Similar Threads
kXML users ...
Application not authorized to access the restricted api
"Allow Application to read data In" Block this alert
Problems with Player -- no sounds.
File Reading using J2ME