×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    May 2013
    Posts
    20

    Database for asha s40 full touch

    My app need to connect to database, but I don't know type of DB and how to use it (get data, insert, update, delete)
    Anybody help me?
    Thanks in advance!

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Database for asha s40 full touch

    hello tieubinh,

    AFAIK there are two options:

    1. you can use Recordstore.
    2. If you have large data then use a remote database and write web services to expose them to device.

    Cheers,
    Gargi

  3. #3
    Registered User
    Join Date
    May 2013
    Posts
    20

    Re: Database for asha s40 full touch

    Hi gaba88,
    Thanks for your helping
    I find that RecordStore be able to save data in record by record,
    But whether the data will be losted in the next running?

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Database for asha s40 full touch

    yes of course RecordStore are meant for persistent storage of data.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,734

    Re: Database for asha s40 full touch

    (While we probably all agree, the "yes" may be confusing. So, no, the data will not get lost. RecordStore will keep its content even if you switch off the device.)

  6. #6
    Registered User
    Join Date
    May 2013
    Posts
    20

    Re: Database for asha s40 full touch

    RecoreStore would get lost if MIDlet get lost,
    MIDP doesn't use file system to store data, instead of MIDP store all informaton in a non-violet memory of storage system called Record Management System (RMS)
    So I think we must write data when we start MIDlet (just one time or more, I don't know exactly???) and then we must get data from RMS when we use it. Whether it make our programes more slowly than read/write file text or store data in a class?
    Last edited by tieubinh; 2013-05-16 at 15:05.

  7. #7
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,569

    Re: Database for asha s40 full touch

    Quote Originally Posted by tieubinh View Post
    RecoreStore would get lost if MIDlet get lost,
    MIDP doesn't use file system to store data, instead of MIDP store all informaton in a non-violet memory of storage system called Record Management System (RMS)
    So I think we must write data when we start MIDlet (just one time or more, I don't know exactly???) and then we must get data from RMS when we use it. Whether it make our programes more slowly than read/write file text or store data in a class?
    With "non-violet" I assume you mean "non-volatile". Anyway, in the end, the Java run-time does store the RMS data using the file system (the files just aren't directly accessible on Series 40 based phones, and neither are they easily accessible on Symbian/S60 based, either, as they require elevated privileges/capabilities).

    Besides RMS, you can also use JSR-75 or the FileConnection API. Examples in the wiki.

Similar Threads

  1. Definition of Full Touch Asha app ?
    By geeklab in forum Nokia Asha Web Apps
    Replies: 4
    Last Post: 2013-05-03, 17:28
  2. Help to select a Nokia Asha full-touch device for testing
    By anujit in forum Nokia Asha Web Apps
    Replies: 4
    Last Post: 2013-04-22, 10:52

Posting Permissions

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