This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding FileConnection ...  RSS feed

 
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ...
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vassili Vladimir
Ranch Hand
Posts: 1585
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much Eduardo, i will read about it now, really thanks

Good luck
 
See where your hand is? Not there. It's next to this tiny ad:
Thread Boost - a very different sort of advertising
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!