Thanks for your answer, Jimmack.
But, if I use MIDP-2.0, can it be done?
Main Topics
Browse All TopicsHi,
I'm trying to build an application that can block incoming message.
I use J2ME. Can J2ME do this? I mean block incoming message from all number?
(I hope the incoming messages are not stored in the inbox folder)
I have read that SMS sent using port number. What port number is usually used to sending
and receiving message.
I use Nokia 3650 phone (MIDP 1.0)
Could anyone give me advice?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Can you explain why you need to do this. It depends on what ports the SMSs are received. Even then, the J2ME implementation should inform the user that an SMS has been received. You'll certainly need to ask the user if they want to do this for both useability and (more importantly) security reasons.
I use this application for my thesis. I think it was simple to block SMS using J2ME before. But when I tried to implement it, I know I was wrong.
If it depend to the port, which port is usually used to receive SMS? Does any ways to do this (block incoming SMS) using J2ME?
thanks before Jimmack for your answer, It's very help me.
Unfortunately, I don't have a MIDP-2.0 compliant handset at the moment, so I can't do any testing to prove the following, but...
A table appears in the WMA 1.1 specification (Table A-1: Number of SMS protocol messages needed for different payload lengths) with the following headings:
No port number present (message to be displayed to the end user)
Port number present (message targeted at an application)
This implies to me that "normal" SMS messages (eg. sent from any other handset using the normal "Message" facilities) will not contain a port number.
In order for an SMS to be recognized by a MIDlet, the MIDlet needs to register with the PushRegistry. When registering, a port needs to be specified.
This therefore implies that "normal" (handset -> handset) SMSs cannot be intercepted. This makes sense because where a MIDlet does receive an SMS, the SMS is deleted from the SIM/ME and responsibility for storing the contents is left to the MIDlet. Potentially, there is a security/useability risk where a MIDlet is installed that simply intercepts and discards all SMSs (without informing the user).
At this stage, I would think that you cannot intercept and manage all SMS messages using J2ME.
Business Accounts
Answer for Membership
by: jimmackPosted on 2004-02-04 at 02:22:21ID: 10269650
Sorry, no. You can't do anything with SMS or anything with the phone or SIM using MIDP-1.0.