Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User NightStalkerDNS's Avatar
    Join Date
    Dec 2009
    Posts
    42
    Hey guys

    I need the user to save a few settings for my app. What is the best way to approach something like this? Would writing to a file like this in a specific format be efficent enough or is there a better way?

    This is what I was thinking of using:

    FileConnection sc = (FileConnection)Connector.open("file:///phone/app.txt");
    OutputStream os = sc.openOutputStream();
    os.write(("text to go into the file").getBytes());
    os.flush();
    os.close();

    Thanks for any help or feedback

  2. #2
    Super Contributor grahamhughes's Avatar
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,394
    Use RMS (javax.microedition.rms.RecordStore). It's available on all MIDP devices (not an optional API), and has no security restrictions.

    Graham.

  3. #3
    Registered User NightStalkerDNS's Avatar
    Join Date
    Dec 2009
    Posts
    42
    Perfect. Thanks a lot for the feedback. I will look into that and post back here if I have any further issues.

    Thanks

Similar Threads

  1. Saving Image to disk take about 1min?
    By KevinBoyd in forum Mobile Java General
    Replies: 8
    Last Post: 2009-12-15, 12:18
  2. saving game status after press the red end button
    By ayanir in forum Mobile Java General
    Replies: 0
    Last Post: 2006-01-16, 16:07
  3. PROBLEMS WITH 9210I EXCEL FILE SAVING
    By bte1710 in forum Symbian C++
    Replies: 0
    Last Post: 2002-07-06, 16:50
  4. Saving Phone Numbers
    By Nokia_Archive in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-05-17, 03:13
  5. Saving Phone numbers/names
    By Nokia_Archived in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2002-05-16, 19:42

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