Hi  i am new to j2me . and i have a query on RMS.

Hi ,
while storing the data in RMS , stored it like-----name age des .
now i want to retrive the data individual like , if user wants only name or age or des , it has to display those contents only.if send me the code it would be helpful for me.

Try this code for RMS
public class HighScore extends Canvas {
public Image BackgroundImage;
public Image scoreHeader;
public Image scoreTable;
public Image backImage;
public int key=0;
public MainMidlet mainMidlet;
public StartScreen startScreen;
private int highrecords[];
private String playerName[] = {};
private int score[] = {};
* Constructor creates a new instance of HighScore
* @param mainMidlet is initialized
* @param StartScreen is initialized
public HighScore(MainMidlet mainMidlet,StartScreen startScreen){
setFullScreenMode(true);
this.mainMidlet=mainMidlet;
this.startScreen=startScreen;
try
GameOver.recordStore = RecordStore.openRecordStore("highscore",true);
highrecords = new int[GameOver.recordStore.getNumRecords()];
BackgroundImage=Image.createImage("/icons/bg.png");
scoreHeader=Image.createImage("/icons/highscoreshd.png");
scoreTable=Image.createImage("/icons/highscoretable.png");
backImage=Image.createImage("/icons/back.png");
catch(Exception e)
e.printStackTrace();
* Method paint to used to draw image
* @param g is used to draw
public void paint(Graphics g)
{   String playerNScore = "";
try {
playerName = new String[GameOver.recordStore.getNumRecords()];
score = new int[GameOver.recordStore.getNumRecords()];
catch (Exception e) {
e.printStackTrace();
g.drawImage(BackgroundImage,0,0,g.TOP|g.LEFT);
g.drawImage(scoreHeader,18,18,g.TOP|g.LEFT);
g.drawImage(scoreTable,18,43,g.TOP|g.LEFT);
g.drawImage(backImage,143,199,g.LEFT|g.TOP);
g.setFont( Font.getFont( Font.FACE_PROPORTIONAL,Font.STYLE_BOLD | Font.STYLE_PLAIN, 8 ) );
try{
RecordEnumeration enumhigh = GameOver.enumerate();
int y=65;
int i=0;
while(enumhigh.hasNextElement()) {
playerNScore = new String(enumhigh.nextRecord()).trim();
int pos = playerNScore.indexOf(",");
playerName[i] = playerNScore.substring(0,pos);
score[i] = Integer.parseInt(playerNScore.substring(pos+1));
highrecords=score[i];
i++;
int s =0;
String ss ="";
for(int k=0;k<highrecords.length;k++){
for(int l=k+1;l<highrecords.length;l++){
if(highrecords[k]<(highrecords[l])){
s = highrecords[k];
highrecords[k] = highrecords[l];
highrecords[l] = s;
ss = playerName[k];
playerName[k] = playerName[l];
playerName[l] = ss;
i=1;
for(int k=0;k<8;k++){
if (k<highrecords.length) {
int x=25;
g.drawString(new String(Integer.toString(i)),x,y,g.LEFT|g.TOP);
x+=40;
g.drawString(playerName[k],x,y,g.LEFT|g.TOP);
x+=55;
g.drawString(Integer.toString(highrecords[k]),x,y,g.LEFT|g.TOP);
i++;
y+=15;
} catch(Exception e){
e.printStackTrace();
synchronized public void keyPressed(int keyCode)
key=keyCode;
if(key==-7)
//startScreen.menu_item=0;
mainMidlet.display.setCurrent(startScreen);
synchronized public void keyReleased(int keyCode)
key=0;
Regards
Altosys Java Team

Similar Messages

  • I just got a new iPad 2 and I have lot of questions. I was able to wirelessly link my iPad and iTunes on my PC. I was able to SYNC my email and calendar (new only no history), however I have not been able to SYNC Outlook contacts.

    I just got a new iPad 2 and I have lot of questions. I was able to wirelessly link my iPad and iTunes on my PC. I was able to SYNC my email and calendar (new entries only no history), however I have not been able to SYNC Outlook contacts. Outlook has multiple contact lists. Only one has any data. I can't find a way to delete the others and I can't keep the one I want to use at the top of the list. Any ideas?
    I have a question about email. I have several thousand emails in 10 or so days. How can I select multiple emails for deletion in stead of one at a time? How do I designate emails from a given sender as junk or block certain senders?
    Ron

    the spcs page on this site state which video formats the ipad supports
    I'd suggest converting your old videos to one of those formats
    handbrake is a free program which does this for you
    itunes used to be able to too when I right clicked incompatible media but don't see the option any more
    or maybe it only show when one right click incompatible media and currently my lib don't have any
    about the music then it's odd what formats are they?
    if they are acc protected have you tried to remove the DRM this can be don using itunes as
    apple don't use DRM for music any more

  • I use to have a iTunes account with my old computer, and I have lost all my iTunes music, some purchased, some downloaded from another source. Now I'm using a brand new computer (Windows) and I have opened a NEW iTunes account, but I need my music back...

    I use to have a iTunes account with my old computer, and I have lost all my iTunes music, some purchased, some downloaded from another source. Now I'm using a brand new computer (Windows) and I have opened a NEW iTunes account, but I now I need to figure out if it is possible to recoup my music content that I originally had. I had, I believe around close to 300 songs on my account ;(......Any help or guidance would be greatly appreciated.
    Thanks Again, Ronald
    <Email Edited By Host>

    ronaldkerr24 wrote:
    Now I'm using a brand new computer (Windows) and I have opened a NEW iTunes account
    Now remove all your info and update the old AppleiD/iTunes account and use only that account.
    You cannot transfer items between iTunes accounts.
    You can redownload all the content.

  • I'm new to Mac and I have a Mac Mini. Could you please tell me how I could paste an URL to a video downloader like "Coolmuster Video Downloader for Mac"? I can copy the url but I could not paste it on the downloader. I appreciate your help to my problem.

    I'm new to Mac and I have a Mac Mini. Could you please tell me how I could paste an URL to a video downloader like "Coolmuster Video Downloader for Mac"? I can copy the url but I could not paste it on the downloader. I appreciate your help to my problem.

    Is this happing because the external is formatted to PC and not mac?
    Yes that is correct.
    Will I need to get a mac external hard drive if I wish to continue to save my documents like this?
    If you no longer use a PC you could format this drive for the Mac. However be aware that formatting a drive will erase all the data on it. So you would need someplace to copy the data off this drive to while you did the re-format and then you could copy the data back.
    You could get another drive, format it for the Mac and copy the data to it. Then re-format the original drive and use it as a backup drive. Always good to have backups.
    Post back with the drive type and size of the current drive, if you are doing backups now and how and if you still need to access this drive from a PC.
    regards

  • HT1212 I just got a new IPad mini and must have entered in a 4 digit password when setting up but I can't remember it.  I can't get on the IPad.  Any suggestions?

    I just got a new IPad mini and must have entered in a 4 digit passord.  I can't remember what it is, so I can't get on the IPad.  I had not connected it to Itunes yet.
    Any suggestions?

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • I am new to iOS and just have basics understanding regarding App Development. I would like to work on IRKIT. Any Beginner Guide or reference regarding IRKIT ?

    I am new to iOS and just have basics understanding regarding App Development. I would like to work on IRKIT. Any Beginner Guide or reference regarding IRKIT ?

    Restore from iTune Backup
    1. Settings>General>Reset>Erase all content and settings
    2. You will be asked twice if you want to erase iPad
    3. Slide to set up
    4. Select Language
    5. Select Country
    6. (a) Use Location Service   (b) Don't use Location Service
    7. Choose Wi-Fi Network
    8. Enter Wi-Fi password
    9. (a) Setup as new (b) Restore from iCloud Backup (c) Restore from iTune Backup
    10. Select "Restore from iTune Backup"
    11. You will be instructed to connect to iTune (computer)
    On computer
    12. Two options offered
    13. (a) Set up as new iPad (b) Restore from backup (a list of backup will be shown)
    14. Select Restore from backup and select the backup
    15. Continue
    16. Restoring iPad from backup
    17. The settings for iPad restored

  • I bought a new iphone 4s and I have a problem with the service. How can it be solved? the SIM card is new and was working perfect withe iPhone 4G

    I bought a new iphone 4s and I have a problem with the service. How can it be solved? the SIM card is new and was working perfect withe iPhone 4G

    Under the answer you want to mark as correct you should see a box that says Correct with a green symbol to the left and a box with Helpful with an orange star to the left. Click on the one you want.
    And thanks for thinking about that, it is appreciated.

  • My iphone 4g problem is that i'm deleted my all apple i'ds and i'm create new icloud apple i'd but i am update my app but my mobile give me old i'd why to give me my old i'd i'm create new id so and i have no my old i'd passcode.i'm confused please helpme

    my iphone 4g problem is that i'm deleted my all apple i'ds and i'm create new icloud apple i'd but i am update my app but my mobile give me old i'd why to give me my old i'd i'm create new id so and i have no my old i'd passcode.i'm confused please help me...:-(

    fawaz92 wrote:
    ... i'm deleted my all apple i'ds ...
    Anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID
    Apple ID FAQs  >  http://support.apple.com/kb/HT5622

  • I just opened my new Mac Pro and I have a USB keyboard, not a bluetooth -- it doesn't recognize the USB keyboard and I can't get past the "bluetooth keyboard pairing" screen.

    I just opened my new Mac Pro and I have a USB keyboard, not a bluetooth -- it doesn't recognize the USB keyboard and I can't get past the "bluetooth keyboard pairing" screen.

    What specific KB?
    Do you know it works?
    I set my 2103 nMP with an older (black) Apple USB KB and it worked fine

  • HT203167 I have a new computer PC and I have none of my iTunes music purchases prior to its installation.  How to I retrieve my older purchases?    Please help me.to the

    I have a new computer, PC, and I have none of myiTunes music purchased prior to Febrary 2013. When I go to the iTunes store with my same account and password, it only shows my history since the new computer purchase.  How do I retrieve my other purchases?  Thanks!

    Copy everything from your old computer or your backup copy of your old computer to your new one

  • I updated my iTunes as it asked me to and restarted the computer but iTunes gives me a corruption error and it downloaded a PC speed maximizer on my computer.  I have no idea what this new software is and I have no idea how to get iTunes to work.

    I updated my iTunes as it asked me to and then restarted my computer but iTunes would not open as it said it was corrupted.  In addition as I was downloading the new iTunes a PC speed maximizer was downloaded onto my computer and I have no idea what for.

    Grappler1261 wrote:
    I updated my iTunes as it asked me to and then restarted my computer but iTunes would not open as it said it was corrupted.
    See Install & Update here >  http://www.apple.com/support/itunes/install/
    Also see Downloading Content in the same link.

  • When you have multi iphones and multi ipads, is it really best to have separate itunes accounts.  My husband and I really seems to be running into problems now that I have a new I pad and we have one itunes account.

    I just purchased the New Ipad, my husband and I have 2 Iphones (4 & 4s) and he has the Ipad 2, we are "technically" challenged, that I will put out there right up front .  We've had nothing but troubles with the imessaging, and messages stating that they have been delivered but not received.  I am not sure if it's more confusing with us having this one Itunes account, if it's best for me to have my Itunes account and my husband having his own.  The Itunes account is my husband's and for some reason, the imessager doesn't recognize "him" being registered, but it sees everyone else.  It wasn't working last night, but this morning, it worked, but when I tried to send him a text from my iphone this morning, it said, delivered, but he never got it, the only way I could get it to work, was to turn off, imessaging.  It's become very confusing and I am not sure why.  I am thinking, I will remove my Iphone from his Itunes account, set up my own (as we have too much problem with this Icloud, his contacts, his music, etc).  Any thoughts, suggest, help, would be greatly appreciated.  Not sure what this problem is all the sudden with the imessager, we had no problem before I got my Ipad (which has not been synced with his Itunes yet as an additonal device)  I am sure if there is a problem with how we have our contacts listed).  I've tried reading articles and again, being technically challenged, it is hard to follow sometimes.

    You and your husband can share a store account and still have seperate iCloud accounts for your contacts, bookmarks and stuff like that.  Click here for instructions to make an apple account without entering a credit card.  Make sure you use a different email address for each apple account. 
    Set up your iPhone/iPad whatever using the new account for iCloud.  Then go into settings/store and sign in with your purchasing account, you may need to sign out of the other account.  To the best of my knowledge, your household is allowed to share purchased legally, someone please correct me if I'm wrong.
    Once you each have your own devices set to your own accounts you can set them to backup to that account and it will keep all your contacts seperate.

  • Can i create a new apple ID, and still have access to the purchases i made on the old one?

    I recently updated my apple ID email address, and Password to my current (newer) address. upon doing so iCloud went completely crazy, changed the timing zones on my calendars, and removed or changed data on my Mac, iPhone, and iPad.
    i have tried, in vein, to get a verification email sent to me from apple so i can get my iCloud account working again, however no such email has arrived.
    soon i will be taking my Mac to an Apple store to get the Harddrive wiped clean, as Mountain Lion has well and truly messed it up. what i am wondering is, if i where to create an entirely new apple ID, and start from scratch would i still have access to the apps and song purchases i made on the on the old account?

    Well yes, but if you want to update those apps, you'd need to sign in under your old Apple ID to update them. It's really best to just stick to one Apple ID, or you'll run into association complications down the road.

  • I have a new 16g nano and I have only added about 600 songs and I only have less than a gig left of space.  It says I have used over 9G of other.  I have no movies, pictures, tv shows or anything else on it.  How do I find out what the "other" is?

    I have a new 16g nano.  I have only added about 600 songs so far.  It is telling me that I 4.47G of songs and 9.92G of other and only 3.297MB of space left.  I have no tvshows, no movies, no pictures on the Ipod.  How do I find out what the "other" is and get rid of it? 

    You most likely have some corrupted files in other. Restore it and resync.

  • I'm new to keynotes and I have a lot of powerpoint presentations I'm trying to salvage.  I can't get the slides to change on a click plus I can't find the way to change the "transition" time changes within each slide.  Where can I find the answer

    I'm new to keynotes and I'm trying to salvage several powerpoint presentations.  I can't control my slide presentations by clicking to change slides and/or for transitions within the slides.  I'm sure there's an answer but I can't find it.  Can someone please give me directions.

    Show the Inspector;   view > show inspector
    to run a presentation using manual control:
    Inspector > Document: set Presentation to Normal
    many transitions set in PowerPoint are not available in Keynote;  to set the transition options:
    Inspector > Slide > Transition
    select the effect you want and either choose auto or manual control

Maybe you are looking for

  • Issues with Apple Services and WiFi

    I have a 4G iPod Touch that has one of the most annoying, baffling, and downright irritating issues I've ever see with regards to WiFi signal strength. At anything less than full strength, Apple Services just about refuse to work at all. This means:

  • Accounting document not created in J1IH transaction

    Hello All, We have a situation where additional excise is posted for a vendor through J!IH transaction. The excise JV is created but the accounting document does not get created. During transaction J1IH diex (additional excise) system has posted one

  • Issue in creating Lead Follow UP- Action Profile

    Hi,   I am creating a Lead From a Lead  automatically through Action Profile. The Condition is Based on the Questionaire Qualification level. When the follow up is created the Qualification level values disappered.    We suspet that the lead copies t

  • Allow normal user to run "ip link set"

    Hi, every time I power on my wireless lan device by hardware switch I have to execute ip link set wlan0 up as root in order to use it. There's a bash script which is triggered with normal user rights by the switch. I'm member of the network group, bu

  • Cfselect and time

    Hello, I would like to get some tips on the best way to accomplish what I am trying. Obviously my method is not exactly working the way I wanted it too. I have select boxes for the user to enter the time. I just need some ideas on either a new method