BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-11-2007, 02:55 PM   #1 (permalink)
New Member
 
Join Date: Nov 2007
Model: 8800
PIN: N/A
Carrier: Rogers
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Resource Bundle max size.

Please Login to Remove!

Hello,

I would like to do some testing of my application on the simulator and the device. What I need is large string to be read in a written out. I would like these strings to be documents of 100K in size. I have tried to simply copy a file into java source code, but it is too large to be declared as a new string. I have also tried to put the string into resources (.rrc & .rrh) files, but I receive a missingresourceexception even though the first few are there. I have even tried splitting up the strings into sizes that can be handled, but the result is still the same exception. For example, I have tried:
FILEA1#0="Long string";
FILEA2#0="Long string2";
...
The seventh string causes the error and each of these strings is approximately 10000 characters. Is there a maximum resource size of 65536??? And can anyone tell me how to get these strings into an app on the device. Thanks.
Offline  
Old 12-11-2007, 11:05 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you want to access 100 KB of data then you'll need to make sure that your .rrc files are each less than 64 KB (the raw .rrc files, not the processed .crb files). So, you'll need to go ahead and split your big file up into smaller chunks and use as many rrc files as necessary; two in this case if you put 50 KB into each.
Offline  
Old 12-12-2007, 09:23 AM   #3 (permalink)
New Member
 
Join Date: Nov 2007
Model: 8800
PIN: N/A
Carrier: Rogers
Posts: 8
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I didn't know I could use multiple rrc files, but I don't see why I couldn't... Thanks!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.