BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-28-2011, 01:19 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2011
Model: 9700
PIN: N/A
Carrier: 9700
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Hashtable doesnt store bitmaps in order

Please Login to Remove!

Hi,

I am storing bitmaps from sdcard in hashtable. As i click bitmaps , it store bitmaps one by one in hashtable where bitmap Path is the key & bitmap field is value but it doesnt store in sequence. The first bitmap which i click is not stored as first key in hashtable however i want to store bitmaps in the order in which they are clicked

any one have any about this?
Offline  
Old 09-28-2011, 07:29 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: Hashtable doesnt store bitmaps in order

The Hashtable documentation will have warned you about this. If you want to impose order on the elements of a collection you should use a collection that either maintains or imposes order. A Vector will maintain order, one of the SortingVector types will impose order.
__________________
My other Blackberry is a PlayBook.
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

Similar Threads for: Hashtable doesnt store bitmaps in order
Thread Thread Starter Forum Replies Last Post
Saving multiple objects in multiple persistant store xmncxzvt Developer Forum 1 06-18-2011 09:47 AM
Ordered the Blackberry Online? codeworks General 8300 Series Discussion - Curve 19 06-05-2007 03:15 PM
Don't order from Seidio if you want quick shipping neils Rants and Raves Forum 3 04-26-2007 03:29 PM
Confusion about update order...(successful updaters please read) DarienA BES Admin Corner 11 03-08-2007 03:14 PM
CDO.DLL woes... kjohn BES Admin Corner 9 11-29-2005 10:17 AM

1pair Audio Transistor YAMAHA TO-3 2SJ26/2SK76 J26/K76 100% Genuine and New
$180.0
1pair  Audio Transistor YAMAHA TO-3 2SJ26/2SK76 J26/K76 100% Genuine and New pictureXQV600-4BG432N xilinx BGA432 NEW 1PCS
$1200.0
XQV600-4BG432N   xilinx   BGA432   NEW     1PCS pictureNTE912 NTE electronics version of the CA3046 & CA3086 transistor array ECG912
$16.06
NTE912 NTE electronics version of the CA3046 & CA3086 transistor array ECG912 pictureMTR28512TF INTERPOINT used . clean . good quality . 1pcs
$360.0
MTR28512TF   INTERPOINT    used  . clean  .  good  quality  . 1pcs picturePalomar MIC-3P-M3-10PK TO-3P Transistor Mounting Hardware Kit, 10 Pack New
$13.99
Palomar MIC-3P-M3-10PK TO-3P Transistor Mounting Hardware Kit, 10 Pack New picture






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