×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    3

    Receiving Messages

    Hi all,

    I have created an app that is able to do the following,

    1) Receive and Send from the same port.
    2) Send through an application to another phone that doesnt.

    Now what i want to achieve is that i want to be able to do the reverse of no. 2. Which is, a phone without the application sends an sms to the another phone which has the app, and the app is able to detect that incoming messages. I been trying to change the ports and everything.

    One of the thred mentioned that this cannot be done. While another said that the default port for all phone is either default :5000 or :0.

    Which of the above mentioned cases is true ?

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: Receiving Messages

    We cannot change any thing in phone's inbuilt application so that is not possible. If your application will receive sms on port 0 then your application will not get data.

  3. #3
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: Receiving Messages

    On many phones you cannot see the messages going to the inbox (which is not necessarily port 0). So no can do.

    Hartti

  4. #4
    Registered User
    Join Date
    Sep 2008
    Posts
    3

    Re: Receiving Messages

    Thanks hartti and honest,

    Now a few more questions,

    Is there a possible way for my j2me application to automatically run in background upon installation,
    From what i see, alot of people suggessted PushRegistry.

    If i have a phone installed with the j2me app, and its off. When i turn on, how i do enable my application receive the sms sent to it when its turned off?

  5. #5
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: Receiving Messages

    As far as my experience the messages which we are sending is even working in same way as simple messages. So if someone send sms for that application but the mobile is switched off then it will receive it when it will be switched on. The settings of push registery will not be removed when we will switch off the device.

  6. #6
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    166

    Re: Receiving Messages

    use message listener interface and create another midlet
    this midlet will act as listner if you specify 5000 port it will fetch msg from port and you can do further processing this midlet will work even if your appl is closed

  7. #7
    Super Contributor
    Join Date
    Mar 2003
    Posts
    580

    Re: Receiving Messages

    Quote Originally Posted by honest_success View Post
    We cannot change any thing in phone's inbuilt application so that is not possible. If your application will receive sms on port 0 then your application will not get data.
    not exactly.
    http://discussion.forum.nokia.com/fo...ad.php?t=57851

    look also at post 19 in same thread:
    http://discussion.forum.nokia.com/fo...9&postcount=19

    the midlet should be able to send sms to any port.
    maybe same result can be obtained in same manner to receive sms...

Similar Threads

  1. Receiving SMS messages
    By Freestyler in forum Mobile Java General
    Replies: 4
    Last Post: 2009-01-26, 04:16
  2. Problems Sending and Receiving SMS Messages from the Emulator
    By appdeveloper in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-11-27, 05:15
  3. Replies: 1
    Last Post: 2003-06-06, 10:54
  4. Receiving SMS messages
    By Freestyler in forum Mobile Java General
    Replies: 3
    Last Post: 2003-05-22, 17:06

Posting Permissions

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