random-access

i want to call an image to be displayed in a view

hi I wanted to display randomly selected images in a view. below is an example of code i am using to generate random numbers to be displayed in a lable. ( its around about way to code it and im aware there is a more concise approach to code this. im doing it this way for a particular reason that i wont go into now). i wish to replace the...

Efficient insertion/deletion algorithm for an array

Hi there, I subscribe to a data feed and from that create and maintain a structure using the index values on the INSERT/DELETE messages. I would like to ask the assembled cognoscenti whether they know of any algorithm which can deal with the piecemeal updates in an efficient way - generally batch-updates contain between two and six suc...

File random access in J2ME

Hi all, does J2ME have something similar to RandomAccessFile class, or is there any way to emulate this particular (random access) functionality? The problem is this: I have a rather large binary data file (~600 KB) and would like to create a mobile application for using that data. Format of that data is home-made and contains many ind...