×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    42

    Saving settingsHe

    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
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Saving settingsHe

    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
    Join Date
    Dec 2009
    Posts
    42

    Re: Saving settingsHe

    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
    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

Posting Permissions

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