You Are Here:

Community: Developer Discussion Boards

#1 Old JSR 75 on S40 vs S60 - 2009-04-09, 08:48

Join Date: Apr 2009
Posts: 2
Furanku
Offline
Registered User
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
Reply With Quote

#2 Old Re: JSR 75 on S40 vs S60 - 2009-04-09, 11:24

Join Date: Jan 2008
Posts: 533
Location: Amravati, India
arpit2agrawal
Offline
Super Contributor
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.
Reply With Quote

#3 Old Re: JSR 75 on S40 vs S60 - 2009-04-09, 11:36

Join Date: Apr 2009
Posts: 2
Furanku
Offline
Registered User
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
Reply With Quote

#4 Old Thumbs up Re: JSR 75 on S40 vs S60 - 2009-04-09, 11:51

Join Date: Sep 2008
Posts: 1,195
Location: DELHI
Send a message via Yahoo to jitu_goldie
jitu_goldie's Avatar
jitu_goldie
Offline
Forum Nokia Champion
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..
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
JSR 180 (SIP) not supported on s60 5th edition !!! jcaradec Mobile Java Networking & Messaging & Security 4 2009-03-12 09:00
Python for S60 1.9.0 released tvijayan Python 48 2009-01-27 16:39
Blank Page in S60 but working in S40 ravisashank Mobile Java Tools & SDKs 7 2008-12-10 12:40
Network config differences S40 / S60 ipxlittle Mobile Java Networking & Messaging & Security 3 2008-01-15 23:38
How to detect if phone is s40 or s60? (s40 and middlebutton related) JDoe Mobile Java General 2 2007-07-19 19:43

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia