×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    70

    How much Data i store onDevice

    Hi

    I want to built the application that can get get all the data about the customer .The data i want to get from the server is in Mega Bytes.I get the data from the server through wireless communication & i store all the data on the rms.So is this the right way or how much data i store on rms .

    Regards
    Junaid

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: How much Data i store onDevice

    Quote Originally Posted by junaid888 View Post
    Hi

    The data i want to get from the server is in Mega Bytes.I get the data from the server through wireless communication & i store all the data on the rms.

    So is this the right way or how much data i store on rms .

    Regards
    Junaid
    Well, the RMS is the good choice for the data which you wanna keep the secured however there is the limited and maximum size which device offers you for the RMS. Hence you can not exceeds the limits of the RMS.

    As the green bolds words say that the data is supposed to be in the MB's and hence you will not be able to write this MB"s of data in RMS.Since the RMS max size is very much limited and at the max is in KB's or 1 MB only.

    Please read these lines,

    Storage Limits

    The amount of memory available for record-based data storage varies from device to device. The MIDP specification requires devices to reserve at least 8K of non-volatile memory for persistent data storage. The specification does not place any limits on the size of an individual record, but space constraints will vary from device to device. RMS provides methods for determining the size of an individual record, the total size of a record store, and how much memory for data storage remains. Remember that persistent memory is a shared, scarce resource, so be frugal in its use.
    Any MIDlet suite that uses RMS should specify the minimum number of bytes of data storage it requires, by setting the MIDlet-Data-Size attribute, in both the JAR manifest and the application descriptor. Do not set this value any larger than absolutely necessary, as the device may refuse to install a MIDlet suite whose data storage requirements exceed the space available. If the attribute is missing, the device assumes the MIDlet suite requires no space for data storage. In practice, most devices allow applications to exceed their stated space requirements, but do not depend on this behavior.

    Note that some MIDP implementations require you to define additional attributes related to storage requirements -- check device documentation for details.
    To get the RMS maximum size,
    http://www.itgalary.com/forum_posts.asp?TID=914
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: How much Data i store onDevice

    I want to built the application that can get get all the data about the customer .The data i want to get from the server is in Mega Bytes.I get the data from the server through wireless communication & i store all the data on the rms.So is this the right way or how much data i store on rms .
    If the amount of data is that large, you should make it available to the client device via server in online browsing mode only, dont try to get it all on the device in RMS, it wont work that way... you face lot of issues on many devices wrf to max RMS size, RMS access speed, synconization this big db/rms etc.

    thanks,
    ~Amitabh

  4. #4
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    70

    Re: How much Data i store onDevice

    hi

    if i want to add the data in different rms so the device would assign the 1 MB size for each rms or for all the rms used by my application?

    Regards
    Juanid

  5. #5
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    70

    Re: How much Data i store onDevice

    hi
    i store the data on palm devices not any mobile.

    regards
    Junaid

  6. #6
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: How much Data i store onDevice

    Palm may have diff. spec's but the latest Palm Pre devices do not support j2me and you may using old devices with IBM KVM... check the specs.. or do a test rms program and try to fill in dummy data to see how much data you are able to store in a single rms.

    thanks,
    ~Amitabh

  7. #7
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    70

    Re: How much Data i store onDevice

    Sorry i used Window Mobile 5 & i dump the data it give the available memory of 2.87Mb in rms but it is the overall memory available for application.

    Regards
    Junaid
    Last edited by junaid888; 2010-04-21 at 11:28.

  8. #8
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: How much Data i store onDevice

    See this depends on the actual target device, if you target device support that much of data in RMS... any your RMS access speed with of data suites your application needs keep it. But it will be portable across lot of other j2me devices with this approach hence not recommanded.

    thanks,
    ~Amitabh

  9. #9
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    70

    Re: How much Data i store onDevice

    Hi
    Is there is any way that i utilize my sd card space without using any jsr.
    is there is any database for mobile i used .I read about sql Anywhere so is there any data base that install on mobile & also free.

    Regards
    Junaid

  10. #10
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: How much Data i store onDevice

    Quote Originally Posted by junaid888 View Post
    Hi
    Is there is any way that i utilize my sd card space without using any jsr.
    No. The (J2ME) device must support JSR-75 (PIM and FileConnection API) in order to create and write to files. Note that the device manufacturer may limit which directories/folders are visible/accessible in/from a MIDlet.

  11. #11
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: How much Data i store onDevice

    for storeing in SDcard you need JSR-75 FCA API.

    SQLAnywhere can be used in windows mobile, and you may require to make JNI call to access it or make a ondevice server in .net that you can call from j2me app.

    thanks,
    ~Amitabh

Similar Threads

  1. can data stored in rcord store be retrieved
    By bejoy_ak in forum Mobile Java General
    Replies: 2
    Last Post: 2010-04-21, 20:04
  2. Replies: 1
    Last Post: 2009-04-07, 10:34
  3. How to store data on the device using Flyer?
    By pakkami22 in forum [Archived] Flash Lite on Nokia Devices
    Replies: 2
    Last Post: 2008-11-02, 08:23
  4. J2ME encrypt C# decrypt
    By josual in forum Mobile Java Networking & Messaging & Security
    Replies: 13
    Last Post: 2008-10-20, 04:29
  5. Using protocol file:// with object connector
    By afinistr in forum Mobile Java General
    Replies: 2
    Last Post: 2002-06-24, 07:12

Posting Permissions

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