Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (494)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 1251 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 Member





« 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 Member




Doh!


« 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.

shmoove
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.

 

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

The first screenshot will be displayed as a thumbnail.

Dwinin (19 views)
2014-09-12 09:08:26

Norakomi (54 views)
2014-09-10 13:57:51

TehJavaDev (63 views)
2014-09-10 06:39:09

Tekkerue (31 views)
2014-09-09 02:24:56

mitcheeb (53 views)
2014-09-08 06:06:29

BurntPizza (37 views)
2014-09-07 01:13:42

Longarmx (23 views)
2014-09-07 01:12:14

Longarmx (27 views)
2014-09-07 01:11:22

Longarmx (27 views)
2014-09-07 01:10:19

mitcheeb (35 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!