Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (710)
Games in Android Showcase (212)
games submitted by our members
Games in WIP (784)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Simulator and real phone  (Read 1677 times)
0 Members and 1 Guest are viewing this topic.
Offline monopolyli

Senior Newbie

Java games rock!

« Posted 2005-04-22 18:47:01 »

Hello everybody,
I use simulator to develop my game, but after install the program to my phone (Nokia 3120 and the file size of the game is 24KB), and the real phone tell me cannot be excuted.
So, could you tell me which factors can lead to this problem?   Huh
Thank you very much~
Offline davidaprice

Junior Devvie

« Reply #1 - Posted 2005-04-23 10:12:25 »

I'm afraid we'll need more information than that if we're to help you. What was the error message (precisely)? How did you install it in the phone (from a WAP site?)? What does your JAD file contain? How did you build the MIDlet? (Wireless Toolkit? Ant + Antenna?). And anything else that might be relevant...
Offline monopolyli

Senior Newbie

Java games rock!

« Reply #2 - Posted 2005-04-23 10:36:16 »

Oh, sorry.
1) The error message is " ! Unable to run application"
    The message is displayed after I choose "start" in    the Splash image.
2) I use Nokia PC Suite to install my application
3) JAD file contains 3 classes, they are:
   a) GameMIDlet
   b) GameScreen (i.e. Canvas)
   c) RMSUtil (i.e recordstorage)
For the RMS, I create a database called "gamedb" which places in the constructor of GameScreen. And then it will compares the scores with the scores in the database every time. If the score is higher than the database, it will replace database's record.
   d) 11KB of png in res
4) I use Sun's KToolbar and Nokia S40 SDK to develop my application.

Thanks a lot~~
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline monopolyli

Senior Newbie

Java games rock!

« Reply #3 - Posted 2005-04-23 12:20:31 »

The error message occurs every time after the title splash page changes to GameScreen, no matter the title page automatically changes to GameScreen or I click the start command manually.
Offline monopolyli

Senior Newbie

Java games rock!

« Reply #4 - Posted 2005-04-24 12:55:30 »

I discover that when I changed the Splash image to a text (i.e: g.drawString("GameABC", 0, 0, Graphics.TOP|Graphics.LEFT); )
then the problem will not occur.
But when I use an image to replace the text in the title Page, the problem will occur again.
P.S: The splash image only 1.2KB.
Can anyone help me?
Thank you very much!
Offline shmoove

Junior Devvie


« Reply #5 - Posted 2005-04-24 22:28:41 »

"Unable to run application" on Nokia phones usually means you are running out of heap memory. This would easily explain why when you don't load an image for the splash screen it doesn't happen (the fact that the image is 1.2 KB is irrelevant: Nokia phones will convert the image to their native format when it's loaded and it will take 2*pixels + C bytes in the heap).
So basically you need to make your app more memory-effective. One thing worth noticing is that these handsets don't have a compacting garbage collector so memory fragmentation can cause the "Unable to run..." message even if the actual memory usage is below the limit (which is around 200K on Nokia handsets).
The memory profiler in the WTK can be a useful tool in these cases.

Offline monopolyli

Senior Newbie

Java games rock!

« Reply #6 - Posted 2005-04-25 09:15:01 »

Thanks for your reply
And the memory profiler, there are 5 columns, which one that I should concern?
Thanks a lot!
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

theagentd (66 views)
2017-02-18 13:42:33

theagentd (71 views)
2017-02-18 13:35:16

h.pernpeintner (1235 views)
2017-01-24 22:39:11

h.pernpeintner (1223 views)
2017-01-24 22:38:32

Galdo (1775 views)
2017-01-12 13:44:09

Archive (1891 views)
2017-01-02 05:31:41

0AndrewShepherd0 (2427 views)
2016-12-16 03:58:39

0AndrewShepherd0 (2279 views)
2016-12-15 21:50:57

Lunch (2359 views)
2016-12-06 16:01:40

ral0r2 (2152 views)
2016-11-23 16:08:26
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!