This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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 ...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!