×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    20

    6300 s40 3rd edition FP2 permissions problem

    Hi there.

    I have a midlet that records video and audio, uses http and the fileconnection API. I have added the permissions in the JAD file and a weird thing is going on.

    When the midlet is NOT signed the app always asks before accessing the file system or network or camera as expected. If I answer yes then everything works fine.

    When the midlet is signed and after changing the app permissions I get an "access not allowed" message.

    The same app works fine on S60 devices when it's signed.

    Any ideas? I would very much appreciate the help as I can't figure this out.

    Thanks
    Last edited by sconst00; 2008-08-05 at 15:06.

  2. #2
    Registered User
    Join Date
    Sep 2007
    Posts
    20

    Re: 6300 s40 3rd edition FP2 permissions problem

    Well a bit more on this from me.

    I 've managed to pinpoint the problem. The message appears when I use player.start().

    Same happens if I use player.prefetch(). If I comment this no message appears on the screen but no video as well obviously.

    Weirdly there is no exception thrown there. I really don't know what to think about this.

    Furthermore, if I don't press back when I get the message the player starts normally!
    Last edited by sconst00; 2008-08-05 at 15:05.

  3. #3
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: 6300 s40 3rd edition FP2 permissions problem

    Which permissions have you requested in the JAD?
    What is the locator/URL you are using to create the problematic player?

    Hartti

  4. #4
    Registered User
    Join Date
    Sep 2007
    Posts
    20

    Re: 6300 s40 3rd edition FP2 permissions problem

    The permission in the JAD are:

    MIDlet-Permissions: javax.microedition.io.Connector.http, javax.microedition.media.control.RecordControl, javax.microedition.io.Connector.file.write, javax.microedition.io.Connector.file.read

    same exist in the manifest file.

    The locator on the 6300 is:
    file:///C:/predefgallery/predefvideos/test.3gp

    Thanks for the help!

    S

  5. #5
    Registered User
    Join Date
    Sep 2007
    Posts
    20

    Re: 6300 s40 3rd edition FP2 permissions problem

    One more thing for the 6300 again.

    Whether I record to a file located on the memory card or a file in the actual device my recording stops automatically after a few seconds.

    Is that a memory issue?

    I would assume when recording on to a file on the memory card the device would be able to keep on recording until there was no more space available.

  6. #6
    Registered User
    Join Date
    Sep 2007
    Posts
    20

    Re: 6300 s40 3rd edition FP2 permissions problem

    Hi - have you been able to resolve this issue? We have a J2ME app that also does video and playback within the app, and although we have not explicitly tested on 6300, we are worried we will see similar problems since our app is signed as well.

    Do post a reply if you have a resolution to this problem.

  7. #7
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: 6300 s40 3rd edition FP2 permissions problem

    Hello sconst00,

    Whether I record to a file located on the memory card or a file in the actual device my recording stops automatically after a few seconds.

    Is that a memory issue?
    This appears to be default behaviour with Series 40 devices. I'll check this issue for more details.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  8. #8
    Registered User
    Join Date
    Sep 2007
    Posts
    20

    Re: 6300 s40 3rd edition FP2 permissions problem

    Thanks r2j7,

    Anything would be helpfull.

    I haven't really figured out a solution to the problem yet. I did run the same app on a 5300 which is based on the same platform and that seemed to work flawlessly. No problem with permissions and no stopping after a few seconds.

    ddbhasin the biggest problem you will find with signing is that a lot of operators remove the certificates from the phones. Everybody is pushing for java verified nowadays so many phones do not have either verisign or thatwe certificates unfortunately.

  9. #9
    Registered User
    Join Date
    Sep 2007
    Posts
    20

    Re: 6300 s40 3rd edition FP2 permissions problem

    Just found out a solution on the limit of the recording on another thread by r2j7.
    Don't remember the url but the solution is

    recordControl.setRecordSizeLimit(1000*1024);

    Thanks for that
    Last edited by sconst00; 2008-08-26 at 16:48.

  10. #10
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: 6300 s40 3rd edition FP2 permissions problem

    Hello sconst00,

    Just found out a solution on the limit of the recording on another thread by r2j7.
    Don't remember the url but the solution is

    recordControl.setRecordSizeLimit(1000*1024);

    Thanks for that
    Good to hear that the problem was resolved! Yes, the referred thread is:

    http://discussion.forum.nokia.com/fo...d.php?t=137261


    Root cause: The method

    RecordControl.setRecordSizeLimit(Integer.MAX_VALUE);

    seems not to be able to take the Integer.MAX_VALUE value correctly, therefore it's advisable to use x*1024 (where x=number of kbytes) instead as a workaround.

    The Known Issue on this will be published in Forum Nokia Wiki in near future.

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  11. #11
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: 6300 s40 3rd edition FP2 permissions problem

    The Known Issue on this will be published in Forum Nokia Wiki in near future.
    UPDATE: The Forum Nokia Known Issue:
    http://wiki.forum.nokia.com/index.ph...y_in_Series_40

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

Similar Threads

  1. Problem with the downloaded 3rd Edition SDK
    By razas in forum Symbian Tools & SDKs
    Replies: 9
    Last Post: 2010-04-24, 20:58
  2. Replies: 35
    Last Post: 2009-04-11, 14:36
  3. Replies: 1
    Last Post: 2008-05-01, 08:08
  4. Audio recording in Nokia S40 3rd Edition FP2 Emulator
    By anant_vk in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2007-12-21, 18:10
  5. 3rd edition porting problem
    By novis in forum Symbian
    Replies: 0
    Last Post: 2007-10-23, 11:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×