×

Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    8

    Setting up development environment

    I am new to Mobile development.
    I need to develop following application

    Invoke a MIDlet on SMS arrival on some port (e.g 5000) using PushRegistry. The MIDlet will read the SMS and update the contact database.

    I need to setup the development environments that will support following features

    1. OTA installation of the MIDlet.
    2. Sending SMS to the emulator on a specific port, so that the installed MIDlet will get executed on the SMS arival.

    I want to use the Series 40 development platform SDK.

    Please tell me how should I setup my development environment (which softwares that need to be downloaded) and how to use the above features.

    I have development the program using WTK, but want to use Nokia S40 SDK.

    Regards,
    Prashant

  2. #2
    Super Contributor
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539

    Re: Setting up development environment

    Hey Prashant, can u specify which IDE u r using.

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    8

    Re: Setting up development environment

    I would like to use Eclipse. Though you can suggest me other good IDEs for mobile development.

  4. #4
    Registered User
    Join Date
    Aug 2007
    Posts
    8

    Re: Setting up development environment

    Hi,

    I setup the development environment in the following way

    1. I install JRE 5
    2. Installed Eclipse 3.2.1
    3. Installed Carbide.j 1.5 (for eclipse integration)
    4. Installed Series 40 Platform 3rd Edition Feature pack 2.

    Now I am able to develop the application.

    But I still don't know how can I send SMS to the emulator on some perticular port. (So my MIDlet will get invoked, as that port is registered using PushRegistry).

    I know we can send the SMS using two emulator instances, by making one as sender and one as receiver. But there is no way to specify the port number while sending the SMS.

    Can anyone told me where to specify port number while sending the SMS?

    Please help me.

    Regards,
    Prashant

  5. #5
    Super Contributor
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539

    Re: Setting up development environment

    hi, use utilities of wtk. u can find it from start menu, open Utilities then select, WMA Open Console of it. In console there is option for send sms, and u can specify port value in that.

    hope this will solve ur problem..

    Prakash

  6. #6
    Registered User
    Join Date
    Aug 2007
    Posts
    8

    Re: Setting up development environment

    Hi,

    I have already tested my application on WTK. The WTK's WMA console does provide the facility to send SMS to perticular port.

    But the WMA console only work with the WTK's default emulators.

    I tried to use the Nokia S40 plateform SDK emulator by installing it under the devices, but when I run the MIDlet on emulator and open the WMA console

    to send the SMS to the emulator. The Nokia emulator does not get listed in the WMA console clients. I even tried to send the SMS to the emulator by manually

    giving the device number by using 'unlisted client' button.

    But I am unable to send SMS to the Nokia emulator using the WMA console.

    Please help.

    Regards,
    Prashant

  7. #7
    Super Contributor
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539

    Re: Setting up development environment

    Well i now got u, i have tried that but it is not working, but i believe there must be some way, i am looking for it will soon tell u as i find it.

    Prakash

  8. #8
    Registered User
    Join Date
    Aug 2007
    Posts
    8

    Re: Setting up development environment

    Hi,

    Please someone help me. I am really stuck.

    Regards,
    Prashant

  9. #9
    Super Contributor
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539

    Re: Setting up development environment

    well one simple thing that you can do is to make a small sms sending app, in which u can specify the port number and the phone number of other emulator. Now u can run this on one emulator and recieve the required sms on other emulator, at the specific port.

    well till we can find some utility from nokia, i think this will help us always.

    Prakash

  10. #10
    Super Contributor
    Join Date
    Jun 2007
    Location
    Mumbai
    Posts
    539

    Re: Setting up development environment

    Well i am attaching a class for sennding sms which i generally use, u can make a small app using that which will help u sending sms from one Nokia emulator to other, i have tested sending sms using this class....

    import javax.microedition.io.Connector;
    import javax.microedition.midlet.MIDlet;
    import javax.wireless.messaging.*;

    import client.com.onmobile.mInvestor.Constants;

    public class SendSms{
    String message2Send;
    String toAddress;
    private static final String SMSADDRESSPREFIX = "sms://";
    public SendSms(MIDlet midlet,String msg,String toAddress) {
    this.message2Send = msg;
    this.toAddress = toAddress;
    new SMSConnHandler().start();
    }

    private class SMSConnHandler extends Thread {
    public void run() {
    try{
    if(!toAddress.startsWith(SMSADDRESSPREFIX))
    toAddress = SMSADDRESSPREFIX+toAddress;

    System.out.println("Sending SMS: to address: "+toAddress+" with text: "+message2Send);

    MessageConnection conn = (MessageConnection)Connector.open(toAddress);
    TextMessage message = (TextMessage)conn.newMessage(javax.wireless.messaging.MessageConnection.TEXT_MESSAGE);
    message.setAddress(toAddress);
    message.setPayloadText(message2Send);
    conn.send(message);
    try{
    if(null!=message)
    message = null;
    if(conn!=null)
    conn.close();
    }catch (Exception e) { }
    }
    catch(Exception e){ }
    }
    }
    }

  11. #11
    Registered User
    Join Date
    Aug 2007
    Posts
    8

    Re: Setting up development environment

    Hi Prakash,

    Thanks a lot for your help. That really solve my problem. Thanks once again.

    Regards,
    Prashant

Similar Threads

  1. Setting up SMS development environment
    By alecswan in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2005-02-03, 16:25
  2. Setting up SMS development environment
    By alecswan in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-02-02, 18:28
  3. Replies: 1
    Last Post: 2003-05-07, 12:42
  4. Replies: 0
    Last Post: 2003-05-06, 08:47
  5. MMS Application development and testing environment.
    By khurshed79 in forum General Messaging
    Replies: 1
    Last Post: 2002-09-28, 15:39

Posting Permissions

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