×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    2

    JSR 75 on S40 vs S60

    Hi all,

    I was wondering if there is any substantial difference in what way the S40 phones handle the filesystem as the S60 does.

    I have to create a certain file in a special memory card, which the memory card's hardware will recognise and use after the memory card is unplugged and plugged again.

    In both S40 and S60 I have successfully created the file, but in the S40 the memory cards underlying hardware doesn't seem to be able to find the file, while in the S60, it does!

    This leaves me wondering what is the difference when you create a file on a S40 vs a S60 device?

    I create the file like this:
    Code:
            FileConnection fc = ((FileConnection)Connector.open(url);
            fc.create();
            OutputStream os_file = fc.openOutputStream();
            os_file.write(dat_out_temp, 0, 2048); //actually fill 2k in there, 
                                                  //all of it is 0x00
            os_file.close();
            fc.close();
    Cheers,
    Frank

  2. #2
    Super Contributor
    Join Date
    Jan 2008
    Location
    Amravati, India
    Posts
    546

    Re: JSR 75 on S40 vs S60

    You should be able to find the file. Try:
    1. Check the connection URL if it is proper or not.
    2. Go to file manager and check if file is actually created or not.
    3. Turn off the phone (which will flush file system data to memory card) and then remove memory card.

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    2

    Re: JSR 75 on S40 vs S60

    Thank you for your reply arpit2agrawal!

    Quote Originally Posted by arpit2agrawal View Post
    You should be able to find the file.
    Yes, I can find the file. I can create the file without a problem.

    But somehow the file created in S40 is different from the file created on a S60!

    I guess this difference is inside the implementation of the JSR in the S40 OS by Nokia. Maybe I should try to ask the Nokia people?

    Thank you,
    Frank

  4. #4
    Nokia Developer Champion
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: JSR 75 on S40 vs S60

    Quote Originally Posted by Furanku View Post
    Hi all,

    I was wondering if there is any substantial difference in what way the S40 phones handle the filesystem as the S60 does.

    I have to create a certain file in a special memory card, which the memory card's hardware will recognise and use after the memory card is unplugged and plugged again.

    In both S40 and S60 I have successfully created the file, but in the S40 the memory cards underlying hardware doesn't seem to be able to find the file, while in the S60, it does!

    This leaves me wondering what is the difference when you create a file on a S40 vs a S60 device?

    I create the file like this:
    Code:
            FileConnection fc = ((FileConnection)Connector.open(url);
            fc.create();
            OutputStream os_file = fc.openOutputStream();
            os_file.write(dat_out_temp, 0, 2048); //actually fill 2k in there, 
                                                  //all of it is 0x00
            os_file.close();
            fc.close();
    Cheers,
    Frank
    Any Exception?
    Have u checkout the suite settings in app manager.
    thanks,
    jitu_goldie..

    KEEP TRYING..

Similar Threads

  1. JSR 180 (SIP) not supported on s60 5th edition !!!
    By jcaradec in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2009-03-12, 08:00
  2. Python for S60 1.9.0 released
    By tvijayan in forum Python
    Replies: 48
    Last Post: 2009-01-27, 15:39
  3. Blank Page in S60 but working in S40
    By ravisashank in forum Mobile Java Tools & SDKs
    Replies: 7
    Last Post: 2008-12-10, 11:40
  4. Network config differences S40 / S60
    By ipxlittle in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2008-01-15, 22:38
  5. Replies: 2
    Last Post: 2007-07-19, 18:43

Posting Permissions

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