Built-in simple task manager

From the Handango newsletter in my inbox today:

Built-in simple task manager for Series 60 devices
Press and hold the Menu button located on the left side of the display. You will be presented with a list of all applications currently running in your system. You can quickly switch to any of the running tasks by selecting it and pressing the joystick. You can also close a task by selecting it and pressing “C”.

More Series 60 tips

One thought on “Built-in simple task manager”

  1. Some Serious help on DirectUtils.createImage
    Hi;
    doctordwarf,shmoove and others.

    After some tips by shmoove and some extensive debugging i reached at following code.
    Now as far as exception concerned threre are no eceptions. But it still doesn’t shows the image.
    Code :-

    public void paintImg (Graphics g,int x,int y) {
    int w=0;
    int h=0;
    int size=0;
    short[] palette = null;
    byte[] pixels = null;
    short[] card = null;
    int cardSize = 0;
    int width=15;
    int height=15;
    try{

    InputStream is = this.getClass().getResourceAsStream(“/1.png”);

    w = is.read();
    h = is.read();
    palette = new short[15];

    for (int i = 0 ; i = bArray.length )
    {
    bArray2 = new byte[bArray.length];
    for ( i = 0; i cardSize) {
    card = new short[wh];
    cardSize = wh;
    }
    System.out.println(“DIM :”+ x+”-“+ y +”-“+ width+”-“+height+” “+w+”x”+h);
    int c = 0;
    int idx = (y*w+ x)>>1;
    System.out.println(“idx:” +idx);
    System.out.println(“Pix:” +pixels[idx]);
    System.out.println(“Pix2 “+((pixels[idx] & 0xf0) >> 4));
    for(int j = 0 ; j >1;

    for(int i = 0 ; i > 4];
    card[c++] = palette[(pixels[idx] & 0x0f) ];
    idx++;
    }
    if (width %2 == 1) {
    card[c++] = palette[(pixels[idx] & 0xf0) >> 4];
    }
    }

    dg.drawPixels(card,
    false,
    0,width,
    x, y,
    width, height,
    0,DirectGraphics.TYPE_USHORT_4444_ARGB);

    }catch(Exception e){}
    }
    }

    I want to know what’s the wrong with code.

    And if any one of can give a sample code showing how a immutable image file can be drawn using DirectUtils & DirectGraphics for 60 series.
    I want some serious help on this as i am tring this from last three days but can’t see light in dark tunnel.
    Thanks in advace
    -Hemal

Leave a Reply

Your email address will not be published. Required fields are marked *