Win a copy of Microservices in Action this week in the Web Services forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

MIDlet-Data-Size  RSS feed

 
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
 
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.
 
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
Boost this thread!