×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2013
    Posts
    6

    PopupChoiceGroup actionlistener won't work on Asha 501

    Hi all. I'm currently making an app for Asha phones, both the 3xx series and the new 5xx ones.

    I already have the code working on the 3xx series such as Asha 310 and 311, but for some reason, when I compile and try it on Asha 501 phones, it doesn't work..

    I'm getting the 'Radio 1 clicked!!!' message on the Asha 310's emulator console, but not on the Asha 501.

    I'm using Nokia Java SDK 2.0 for the Asha 310/311 and Nokia Asha SDK 1.1 for the Asha 501 phones and the proper Asha LWUIT libraries that comes inside the SDKs.

    Does anyone have an idea why it's working on the older Asha phones but not the new ones?

    Code:
                Form form = new Form("Testing form");
                RadioButton choices[] = new RadioButton[2];
                RadioButton radioButton1 = new RadioButton("Radio 1");
                RadioButton radioButton2 = new RadioButton("Radio 2");
                
                choices[0] = radioButton1;
                choices[1] = radioButton2;
                PopupChoiceGroup popupChoiceGroup = new PopupChoiceGroup("Testing", choices);
                
                radioButton1.addActionListener(new ActionListener() {
    
                    public void actionPerformed(ActionEvent evt) {
                        System.out.println("Radio 1 clicked!!!");
                    }
                });
                
                radioButton2.addActionListener(new ActionListener() {
    
                    public void actionPerformed(ActionEvent evt) {
                        System.out.println("Radio 2 clicked!!!");
                    }
                });
                form.addComponent(popupChoiceGroup);
                
                form.show();

  2. #2
    Regular Contributor
    Join Date
    Dec 2012
    Location
    India
    Posts
    271

    Re: PopupChoiceGroup actionlistener won't work on Asha 501

    Yes it doesnt work in the latest version.You can get the selected index and the selected item whenever you are done with all the operations in a particular page and use it to do your processing.

Similar Threads

  1. Popupchoicegroup not working for asha 501
    By Manpreet_Singh in forum Mobile Java UI and User Experience
    Replies: 6
    Last Post: 2013-10-16, 10:04
  2. Replies: 1
    Last Post: 2013-07-13, 10:39
  3. Does On-Device Debugger also work with S40 1.1 Asha 303 SDK ?
    By jartl in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2012-06-11, 18:32
  4. lists actionlistener
    By ali30 in forum Mobile Java General
    Replies: 15
    Last Post: 2011-08-18, 10:21
  5. ActionListener for a TextField
    By moja_a in forum Mobile Java General
    Replies: 4
    Last Post: 2009-07-26, 18:02

Posting Permissions

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