Results 1 to 5 of 5

Thread: How to resolve the problem of memory in J2ME Mobile

  1. #1
    Join Date
    Feb 2010
    Posts
    524

    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.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    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.

  3. #3
    Join Date
    May 2008
    Posts
    2,389

    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.

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    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));
    )

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    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.

Similar Threads

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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,716,001,151.46601 seconds with 17 queries