Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , ,

Sponsored Links



How to resolve the problem of memory in J2ME Mobile

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 19-02-2010
Member
 
Join Date: Feb 2010
Posts: 505
How to resolve the problem of memory in J2ME Mobile

Hi all,

I am java programmer and build a program in J2me. I think Java is not a mechanism in memory. Unfortunately, we are not at the PC, but on only 64k of memory cell phone. I need a program of memory issue in J2ME Mobile program. Please suggest. Thanks in advance.
Reply With Quote
  #2  
Old 19-02-2010
MindSpace's Avatar
Member
 
Join Date: Feb 2008
Posts: 1,832
Re: How to resolve the problem of memory in J2ME Mobile

You need to write this code on your J2ME code, by this code the memory is shrink automatically.

Code:
g.drawString
( "Score123 =" + score, 50,50,
Graphics123.TOP | Graphics123. LEFT)


Check that and reply.
Reply With Quote
  #3  
Old 19-02-2010
opaper's Avatar
Member
 
Join Date: May 2008
Posts: 2,362
How to resolve the problem of memory in J2ME Mobile

In your J2ME games, this line of procedure is likely to paint () which occurs once every 0.1 seconds to run a bar. With the passage of time, piles of String is created, or else how long, our beloved mother, must come through. Thought of the simple, according to actual situation midlet. Check that and reply.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #4  
Old 19-02-2010
Reegan's Avatar
Member
 
Join Date: Oct 2005
Posts: 2,299
Re: How to resolve the problem of memory in J2ME Mobile

You can also use Collision detection. We have a frame where each traversal of the container to do, the result is a birth in the container as a unit of a lot of Enumeration, the use of Enumeration cool, but for memory try this code.

Code:
for (int loop;
loop
System.out.println
(vector.element123At (loop));
)
Reply With Quote
  #5  
Old 19-02-2010
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
Re: How to resolve the problem of memory in J2ME Mobile

You can use Enumeration for memory management. Take note of interface Enumeration only two method:
Code:
boolean hasMoreElement ();
Object nextElement ();
Enumeration unlike the STL, iterator, can not let an old Enumeration start from scratch, every time we traverse the Vector or Hash table, you have to ask us a container to a new Enumeration. Check that and reply.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to resolve the problem of memory in J2ME Mobile"
Thread Thread Starter Forum Replies Last Post
DNS resolve problem with ping but not nslookup vagniphor Windows Server Help 9 12-08-2011 01:52 AM
J2ME code for capture of photos and pictures in mobile Dante i Software Development 4 22-12-2010 07:12 AM
Download Bolt Web Browser for Mobile Phones [J2ME] Bon-Z Portable Devices 7 02-08-2010 03:14 PM
Memory card problem of Nokia 81 Mobile Phone Mukta Girolla Portable Devices 5 05-03-2010 09:18 AM
developing a 2D mobile game in J2ME Aramax Software Development 3 21-09-2009 03:30 PM


All times are GMT +5.5. The time now is 04:14 AM.