Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor lpinguin's Avatar
    Join Date
    Mar 2003
    Posts
    170
    Hi everybody. I try to get my app working on a 6230i I read about a MIDlet policy file at a Sun Forum. What is this about. Do I need this kind of files? What is this file for?

  2. #2
    Super Contributor wang_shui's Avatar
    Join Date
    Mar 2006
    Posts
    516
    Hi,

    >>>>Midlet policy file
    R u referring to the security policy file.

    This not a necessity in all cases . It will be only required if u r signing ur application or u r using specific apis eg; fileconnection, camera, httpconnection......ie; apis that require permissions while trying to access them



    Wang

  3. #3
    Regular Contributor lpinguin's Avatar
    Join Date
    Mar 2003
    Posts
    170
    I added the permisions concering FileConnection to the jad file. I also signed the app but it didn't solved the problem.

  4. #4
    Super Contributor wang_shui's Avatar
    Join Date
    Mar 2006
    Posts
    516
    Hi,

    Can u specify what ur problem is?? are u able to install the application?? or whether the application crashes while accessing filesystem

    Please have a look at the following thread.
    this might be useful
    http://discussion.forum.nokia.com/fo...ad.php?t=74986

    Wang

  5. #5
    Regular Contributor lpinguin's Avatar
    Join Date
    Mar 2003
    Posts
    170
    The Handset show an error message which says Security Java/lang/Security Exception access denied. This message is shown when the app tries to access the filesystem on a mmc.

  6. #6
    Super Contributor soku123's Avatar
    Join Date
    Feb 2006
    Posts
    689
    Hi

    While acessing the file system the phone will ask for permission if you havent sined the Midlet.Your security permissions are not set properly.

    Thanks
    Soku

  7. #7
    Super Contributor wang_shui's Avatar
    Join Date
    Mar 2006
    Posts
    516
    Hi Ipinguin,


    R u using the phone provided by ur operator??

    is the exception thrown only while accessing the mmc or whether it is thrown while accessing the filesystem?

    even if u have signed the application, u have to manually set the fileaccess settings to "Always Allowed"

    Plz try signing provided here
    http://www.spindriftpages.net/pebble...275880301.html

    Wang

  8. #8
    Regular Contributor lpinguin's Avatar
    Join Date
    Mar 2003
    Posts
    170
    I tried to access the mmc with System.getProoerty("fileconn.dir.memorycard");
    How do I set the fileaccess can you provide an example? I haven't found documentation on this yet.
    THX

  9. #9
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi lpinguin,

    Check this doc below plus the tutorial provided by Wang.

    MIDP 2.0: Tutorial On Signed MIDlets v1.1
    http://www.forum.nokia.com/info/sw.n..._1_en.pdf.html

    BR,

    Juarez Junior

  10. #10
    Nokia Developer Champion traud's Avatar
    Join Date
    Mar 2003
    Posts
    3,898
    lpinguin, after signing your MIDlet and transfering the JAD and the JAR, were you still able to install it? Is this a real device or the Nokia Series 40 2.0 Platform SDK of the Nokia 6230i? Have you played with Nokia > Menu > Applications > Collection > Select application > your MIDlet > Options > Application access > Phone access > Read user data
    and made sure the permission is set correctly?

    Additionally, do not get confused on the link which was given by wang_shui, a Nokia Series 40 does not support self-signed certificates. However, it shows the path how to sign at all.

  11. #11
    Regular Contributor lpinguin's Avatar
    Join Date
    Mar 2003
    Posts
    170
    traud, you made my day! After 5 months of testing my app finally works on my handset. Thank you very much !

Similar Threads

  1. Install a MIDlet using a SIS file
    By chgru in forum Symbian C++
    Replies: 13
    Last Post: 2008-04-23, 13:39
  2. REPLYING AN SMS MESSAGE WITH A MIDLET APP JAR FILE
    By jinda007 in forum Smart Messaging
    Replies: 5
    Last Post: 2006-05-19, 19:28
  3. Replies: 3
    Last Post: 2006-05-02, 20:12
  4. Loadin a text file into a midlet
    By ch1b in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-12, 17:11
  5. Packing a midlet in a .sis file?
    By gjohre in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2003-02-01, 06:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved