Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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 1026 times)
0 Members and 1 Guest are viewing this topic.
Offline monopolyli

Senior Newbie




Java games rock!


« Posted 2005-04-22 20: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 Member





« Reply #1 - Posted 2005-04-23 12: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 12: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!
Try the Free Demo of Revenge of the Titans
Offline monopolyli

Senior Newbie




Java games rock!


« Reply #3 - Posted 2005-04-23 14: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 14: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 Member




Doh!


« Reply #5 - Posted 2005-04-25 00: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.

shmoove
Offline monopolyli

Senior Newbie




Java games rock!


« Reply #6 - Posted 2005-04-25 11: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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (84 views)
2013-05-17 21:29:12

alaslipknot (92 views)
2013-05-16 21:24:48

gouessej (123 views)
2013-05-16 00:53:38

gouessej (117 views)
2013-05-16 00:17:58

theagentd (127 views)
2013-05-15 15:01:13

theagentd (114 views)
2013-05-15 15:00:54

StreetDoggy (158 views)
2013-05-14 15:56:26

kutucuk (180 views)
2013-05-12 17:10:36

kutucuk (180 views)
2013-05-12 15:36:09

UnluckyDevil (187 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.085 seconds with 21 queries.