×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    22

    [b] connecting list elements in midlet to URLs [/b]

    Hi all

    How do I go about coding the list elements in my midlet to connect to their respective URLs?
    I'm using Netbeans 6.8

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: [b] connecting list elements in midlet to URLs [/b]

    Quote Originally Posted by LeloTheGreat View Post
    Hi all

    How do I go about coding the list elements in my midlet to connect to their respective URLs?
    I'm using Netbeans 6.8
    Please explain your requirement in much more details.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Registered User
    Join Date
    Apr 2010
    Posts
    22

    Re: [b] connecting list elements in midlet to URLs [/b]

    Thank you Raj

    May I have your email address so I can explain with attachments

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: [b] connecting list elements in midlet to URLs [/b]

    Quote Originally Posted by LeloTheGreat View Post
    Thank you Raj

    May I have your email address so I can explain with attachments
    Well, you can share the same issue here too, that will be more better for you since you can get multiple kind of concepts from the individuals,please go ahead.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  5. #5
    Registered User
    Join Date
    Apr 2010
    Posts
    22

    Re: [b] connecting list elements in midlet to URLs [/b]

    Ok
    In my app is a list if list elements that when the user clicks on one of them, must connect to the specific URL it represents. ie Facebook, Google etc

    I have a few code examples of platformRequest and the GET method, but the truth is I have no idea as to exactly where I key in what segment of the code.
    I am an amateur developer.
    I'm using the visual mobile designer in Netbeans.

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

    Re: [b] connecting list elements in midlet to URLs [/b]

    Pls ref to http://wiki.forum.nokia.com/index.ph...Menu_on_Canvas

    change String[] options={"Module1","Module2","Module3"}; to your list elements like Google, facebook, Myspace in place of modules.

    private void gotoModule() and try midletObject.PlatformRequest("http://www.google.com"); in case 1, if list item 1 is Google.com

    thanks,
    ~Amitabh

  7. #7
    Registered User
    Join Date
    Apr 2010
    Posts
    22

    Re: [b] connecting list elements in midlet to URLs [/b]

    Please review my code


    } else if (__selectedString.equals("Yeyakho.com")) {
    // write pre-action user code here

    // write post-action user code here
    } else if (__selectedString.equals("Google")) {

    // write post-action user code here
    hc = (HttpConnection);
    try {
    HttpConnection conn = null;
    try {
    conn = (HttpConnection) Connector.open(GoogleURL);
    } catch (IOException ex) {
    ex.printStackTrace();
    }
    }catch (Exception conn){
    }



    } else if (__selectedString.equals("Facebook")) {
    // write pre-action user code here

    // write post-action user code here
    } else if (__selectedString.equals("Twitter")) {
    // write pre-action user code here

    // write post-action user code here

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

    Re: [b] connecting list elements in midlet to URLs [/b]

    This codelet looks good, if its in the commandAction on Select Command.

    Is it working for you ? or you are facing some Issue ?

    thanks,
    ~Amitabh

Similar Threads

  1. calling midlet from midlet throws SecurityException on 6600
    By brianpegan in forum Mobile Java General
    Replies: 3
    Last Post: 2010-10-25, 05:31
  2. Problem connecting List and Scroll components
    By mfabiop in forum [Archived] Flash Lite on Nokia Devices
    Replies: 7
    Last Post: 2009-09-07, 16:32
  3. image full screen
    By Morbidick in forum Mobile Java General
    Replies: 8
    Last Post: 2008-12-04, 04:16
  4. List item selection
    By SanDan in forum Mobile Java General
    Replies: 2
    Last Post: 2003-05-06, 10:57
  5. Midlet connecting via internet APN instead of WAP APN
    By roarl in forum Mobile Java General
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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