开发者

Creating a highscore screen with persistent data in BlackBerry

开发者 https://www.devze.com 2023-03-23 17:41 出处:网络
I\'m trying to create a highscore screen with 5 strings. I only want to update the screen 1 string at a time, as I create a new high score. If there is no new or old high score I just use the initiali

I'm trying to create a highscore screen with 5 strings. I only want to update the screen 1 string at a time, as I create a new high score. If there is no new or old high score I just use the initialized default of 10.

I have been able to use the BlackBerry api and figure out how 开发者_运维百科to create 1 highscore that works completely. However, I'm absolutely stuck on how to create all 5 and sort them within the persistent mechanics. I don't want to post my code because at this point it is such a mess it would be useless.

For reference I am trying to use a string[] and not a vector.


Take a look at this example: http://supportforums.blackberry.com/rim/attachments/rim/java_dev@tkb/14/1/Storing_Persistent_Data_V2.pdf

It demonstrates how you can store different strings in Vector with reference.

0

精彩评论

暂无评论...
验证码 换一张
取 消