×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    10

    Problem with NOKIA 6600

    I am doin an application in J2ME which has choiceGroup. when i select the choices in the choicegroup i hav to do some action. I did this thru ItemStateListener concept in J2ME. Its working fine in NOKIA SERIES 60 Emulator but its not working in the NOKIA 6600 DEVICE...
    What is the reason..

    can any one clarify this...pls...

    Thanks in Advance...

  2. #2
    Regular Contributor
    Join Date
    Jul 2005
    Location
    Omaha, US
    Posts
    129

    Re: Problem with NOKIA 6600

    Please post the piece of code so that it would be easy to debug it...

  3. #3
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: Problem with NOKIA 6600

    Hi,

    This looks to be a phone software bug
    http://discussion.forum.nokia.com/fo...ad.php?t=54586

    also please check whether it is available in the latest phone SW .
    Also please post ur code so that we can figure out what have went wrong with u.

    Wang

  4. #4
    Registered User
    Join Date
    Jun 2006
    Posts
    10

    Re: Problem with NOKIA 6600

    As per ur request i hav posted my codin here pls send me the clarification that need to be done....




    public class Purchase implements ItemStateListener,CommandListener{
    BankTestMidlet obj_bankmidlet;
    public Display display;
    public HttpConnection cc;
    public DataInputStream inn;


    String strPid=new String();
    String strWhole=new String();
    String strNum=new String();
    String strType=new String();
    String strAmount=new String();
    String strCurrency=new String();
    byte[] bb=new byte[1064];


    Form obj_Form=new Form("TestBank");

    Form obj_Form2=new Form("Response");

    TextField Tamount=new TextField("Amount:", null, 5, 0);
    ChoiceGroup CGcardtype=new ChoiceGroup("Card Type",ChoiceGroup.POPUP, new String[]{"Visa","Master Card"}, null);
    ChoiceGroup CGcurrency=new ChoiceGroup("Currency",ChoiceGroup.POPUP, new String[]{"USD","GBP","EURO"}, null);
    ChoiceGroup CGcardno=new ChoiceGroup("Card No.:",ChoiceGroup.POPUP,new String[]{""},null);
    Command cmd_Submit=new Command("Submit",Command.OK, 1);
    //obj_TBC=new TestBankCanvas(this);
    Command cmd_Back=new Command("Back",Command.BACK,2);
    Command cmd_Get=new Command("Get",Command.OK,1);
    //obj_TBC=new TestBankCanvas();

    /** Creates a new instance of FormClass */
    public Purchase(BankTestMidlet obj_bankmidlet) {
    this.obj_bankmidlet=obj_bankmidlet;
    obj_Form.append(CGcardtype);
    obj_Form.append(CGcardno);
    obj_Form.append(Tamount);
    obj_Form.append(CGcurrency);
    obj_Form.addCommand(cmd_Submit);
    obj_Form.addCommand(cmd_Back);
    //obj_Form.addCommand(cmd_Get);
    //obj_Form.setItemCommandListener(this);
    obj_Form.setCommandListener(this);
    // obj_Form2.setCommandListener(this);
    obj_Form.setItemStateListener(this);
    }
    public void mReceive()
    {
    try{

    cc=//doing some connection....

    inn=cc.openDataInputStream();
    inn.read(bb);
    strWhole=new String(bb).trim();
    int intLength=strWhole.length();

    String strElement=new String();
    int startIndex,endIndex,intElement;
    startIndex=0;
    endIndex=4;
    intElement=0;
    while(intLength>0)
    { strElement=strWhole.substring(startIndex, endIndex);
    if(intElement==0)
    CGcardno.set(intElement,strElement, null);
    else
    CGcardno.append(strElement, null);
    startIndex=startIndex+5;
    endIndex=endIndex+5;
    intElement++;
    intLength=intLength-5;
    }

    cc.close();
    }catch(Exception e){System.out.println("In Receive Connection"+e);}

    }


    public void commandAction(Command c,Displayable d)
    {
    if(c==cmd_Submit)
    mSend();

    else if(c==cmd_Back){
    System.out.println("Enters Back");
    obj_bankmidlet.destroyApp(false);
    }

    }

    public void itemStateChanged(Item item)

    if(item==CGcardtype){
    if(CGcardtype.getSelectedIndex()==0){ //This part not working in 6600 device but working in emulator of s60........
    obj_TBMID.display.setCurrent(obj_Form);
    strType="1";
    mReceive();
    }
    else if(CGcardtype.getSelectedIndex()==1){
    strType="2";
    mReceive();
    }
    }
    if(item==CGcurrency)
    { System.out.println("Enter Currency Choice");
    if(CGcurrency.getSelectedIndex()==0){System.out.println("Enter Currency USD");
    strCurrency="USD";
    }
    else if(CGcurrency.getSelectedIndex()==1){System.out.println("Enter Currency GBP");
    strCurrency="GBP";
    }
    else{System.out.println("Enter Currency EURO");
    strCurrency="EURO";
    }
    }



    }

    }

  5. #5
    Super Contributor
    Join Date
    Feb 2006
    Posts
    689

    Re: Problem with NOKIA 6600

    Hi,
    The phone doesnt support jsr75.also please check the known issues of 6600
    Thanks
    Soku

Similar Threads

  1. which phones for laptop
    By dvdljns in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2006-02-14, 12:58
  2. Nokia 6600 - Problem with Form
    By frasene in forum Mobile Java General
    Replies: 0
    Last Post: 2005-12-23, 08:04
  3. problem in keypress in Nokia 6600
    By sushant_125 in forum Mobile Java General
    Replies: 2
    Last Post: 2005-01-05, 17:24
  4. What is the real problem to receive data calls with Nokia TDMA cell modem?
    By jackal_jr in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-12-04, 16:05
  5. Http connection problem in 6310i
    By teahola in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-03, 18:46

Posting Permissions

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