×

Discussion Board

Results 1 to 3 of 3

Thread: list switches

  1. #1
    Regular Contributor
    Join Date
    Nov 2010
    Posts
    118

    list switches

    hi,i develop a j2me app... i have 3 lists... my problem is that all of my 3 lists follows one switch cases...

    i want to apply them with unique switches... how can i do this? please help me...

    i have:
    1. menu_list
    2. inbox_list
    3.drafts_list

    what i did was

    Code:
    switch(menu_list.getSelectedIndex())
    {
        //cases here
    }
    switch(inbox_list.getSelectedIndex())
    {
        //cases here
    }
    switch(drafts_list.getSelectedIndex())
    {
        //cases here
    }
    am i doing the right thing? please help me

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

    Re: list switches

    It totally depends on the logical sequence or the business needs
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  3. #3
    Regular Contributor
    Join Date
    Nov 2010
    Posts
    118

    Re: list switches

    hi im2amit? what do you mean? my menu_list has constant choices: create message,inbox,drafts,exit...

    my drafts and inbox dont have a constant list item...it depends on how many messages it has received...

    if i select the first list item on my inbox_list it performs the same function as of the menu_list.

Similar Threads

  1. 7500 Prism Auto switches to Mute
    By ukn. in forum General Development Questions
    Replies: 1
    Last Post: 2007-10-01, 17:54
  2. Listening to application and/or view switches
    By uttumuttu in forum Symbian
    Replies: 0
    Last Post: 2007-04-18, 15:37
  3. Why does N80 switches off?
    By FLO334 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2006-12-11, 20:46
  4. light of display switches off in application
    By TheMatrixIsAlive in forum Mobile Java Media (Graphics & Sounds)
    Replies: 7
    Last Post: 2003-07-21, 10:32

Posting Permissions

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