×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    94

    touch screen application inJ2ME

    hi to all,

    I have to make a touch screen application in high level as well as in low level. And I have no idea how to make it.
    Please assist.
    Regards,
    Juned Ahmed

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: touch screen application inJ2ME

    In High level, you dont need to any thing the implementation will take care of touch events.

    In Low level, just like keypressed() you will need to take care of pointerPressed(), PointerReleased() and pointerdraged() events in you event handler.

    Also look for JAD properties for switching on/off navigation keys on the touch screen device for Nokia S60 5th editions.

    thanks,
    ~Amitabh

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    94

    Re: touch screen application inJ2ME

    Hi,

    I have an issue in touch screen phone (5530 express music edition). When I use choicegroup i.e. drop down list, If I directly select any item in choicegoupe without scrolling the bar then my application kick out. If first I scroll the bar and select the item then my application working fine.
    If I try to catch the exception then it's not showing any exception.
    Please assist.

    Thanks
    Regards,
    Juned Ahmed

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: touch screen application inJ2ME

    Try ChoiceGroup without POPUP option, it looks to be some implementation problem on MIDP 2.1 on this touch device... even other people have also faced this issue.

    thanks,
    ~Amitabh

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    94

    Re: touch screen application inJ2ME

    If am using without popup then its working fine. But this is mandatory, I have to use popup.
    Any idea?
    Regards,
    Juned Ahmed

  6. #6
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: touch screen application inJ2ME

    Switch to LWUIT or make your own custom choice group... it looks to be some implementation issue of choice group on this platform.

  7. #7
    Registered User
    Join Date
    Jan 2010
    Posts
    94

    Re: touch screen application inJ2ME

    Thanks for your reply, I have an another issue, In my app there are two form high level and low level. when i move first time from high level to low level its working fine, but second time when I am trying to move from high level to low level by pressing submit button application kick out. this issue occurs only in 5230 device.
    any idea?
    Regards,
    Juned Ahmed

  8. #8
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: touch screen application inJ2ME

    Check the available heapmemory at that time, is the application kicking off due to memory constrains.
    Cut & paste your code here for review.

  9. #9
    Registered User
    Join Date
    Jan 2010
    Posts
    94

    Re: touch screen application inJ2ME

    yr code is too long .. I am sending you only main part. Here is class constructor

    public MySaturnMIDlet() // class constructor
    {
    display=Display.getDisplay(this);
    //loadImage();
    addModels();
    cmdSet = new Command("Add New", Command.ITEM, 2);
    cmdExit = new Command("Exit",Command.EXIT,1);
    rsObj = new Persist();
    }


    Here's my submit button from where i called the canvas.
    public void commandAction(Command cmd, Displayable disp)
    {
    if(cmd == cmdSubmit)
    {
    screen = 4;
    if(serviceSaveandValidations())
    {
    canvasObj = new canvasUI(this);
    display.setCurrent(canvasObj);
    }
    }

    }
    Regards,
    Juned Ahmed

Similar Threads

  1. iPhone Blogger Blog Creation Application
    By semaphore10 in forum News and Announcements
    Replies: 4
    Last Post: 2009-10-06, 08:49
  2. FlipFont application displays on OVI screen but it says item is unavailable
    By MTI500 in forum [Closed] Publishing to Nokia Store
    Replies: 1
    Last Post: 2009-09-02, 20:13
  3. Replies: 14
    Last Post: 2009-07-27, 14:26
  4. half-quarter screen application
    By morost in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-07-22, 12:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×