• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MIDlet-Data-Size

 
Todd Plambeck
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a little confused about what this setting actually does. I've got an app I'm putting on putting on a Motorola i58sr phone. I've set the MIDlet-Data-Size in the JAD to be 24kb. 2 questions: 1-Does this allocate 24kb of the phone's memory to my application when it starts? 2-If I exceed 24kb does the RMS grow dynamically or am I stuck with only 24kb of storage space? 3-If the allocation can grow beyond and I assume shrink back to 24kb, what is the point of setting this to anything byt 1kb and letting the device handle the data size allocation?

Thanks,

Todd
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, the implementation may differ from device to device but in principle:

1-The amount you specify in MIDlet-Data-Size will be allocated to your app
for sure. If you specify too much, installation may be denied.

2-The RMS may grow beyond 24 kb or the amount you specify, but you may run into trouble as it grows (ie RecordStoreFull exceptions in the code).

3-If you specify 1Kb, you�ll only get 1Kb for RMS guaranteed.
 
miral patel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using moto v3, i m having prob with record store, it throws recordstorefullexce. I have not specified midlet-data-size. In one of the doc I have found that i have to specify midlet-data-space-requirement attr in mainfest file, any idea?
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, just put the MIDlet-Data-Size inside the Manifest and/or JAD file ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic