Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8620307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:32:58+00:00 2026-06-12T06:32:58+00:00

It is a recurrent question but I wasn’t able to find a complete enough

  • 0

It is a recurrent question but I wasn’t able to find a complete enough documentation on this topic.

I already have a working application able to intercept SMS, when it is send with default parameter with kannel or other device. My manifest look like this :

<receiver
    android:name=".sms.SMSListener"
    android:enabled="true" >
    <intent-filter>
        <action android:name="android.provider.Telephony.SMS_RECEIVED" />    
    </intent-filter>
</receiver>

It works both with android.provider.Telephony.SMS_RECEIVED and android.intent.action.DATA_SMS_RECEIVED.

But for the purpose of my application, the SMS must not appear in the user-inbox. For that, kannel sent the SMS to a specific port. It is already working on Blackberry, so I guess the sending part of the problem is already working.
Also it may be possible to achieve this goal via other means, I need to implement this solution in order to stay coherent with other similar project. Another reason for that, is to avoid my BroadcastReceiver to be fired at each received SMS (and thus needing to parse each received SMS).

However with my current manifest, I don’t receive SMS sent to a specific port (my receiver isn’t fired at all). After some research, I found those topic how to receive text sms to specific port.., How to send and receive data SMS messages.
Someone say that adding :

<data android:scheme="sms" />
<data android:port="1234" />

is enough to work (unfortunately, it doesn’t works for me). However according to the documentation ( http://developer.android.com/guide/topics/manifest/data-element.html ) you need to specify the android:scheme then the android:host in order for android:port to be taken into account. As far as I understand the documentation, you could just specify android:scheme and the intent-filter should still be functionnal.
However as soon as I specify the android:scheme, my BroadcastReceiver cease to work, whether or not I send the sms with a specific port :

<receiver
    android:name=".sms.SMSListener"
    android:enabled="true" >
    <intent-filter>
        <action android:name="android.provider.Telephony.SMS_RECEIVED" />    
        <data android:scheme="sms" />
    </intent-filter>
</receiver>

So my questions are the following:

  1. is there somewhere a documention about which value android:scheme can take ?
  2. which value should I use for android:host ?
  3. is there somewhere an app which listen SMS to every port so I can be sure that the test SMS is correctly sent (just to double check this part) ?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:32:59+00:00Added an answer on June 12, 2026 at 6:32 am

    I finally manage to understand what was wrong :

    I was sending my data sms to the port 2948 which is reserved for WAP-PUSH message.
    So android do not broadcast those message to my android.intent.action.DATA_SMS_RECEIVED receiver. Using a different port solved the issue.

    Moreover, android seems to have problems with 8 bits encoded SMS (at least it rise a warning in the logs.). However my main problem is solved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this is a recurrent question but I cannot seem to be able
I know this is a recurrent/classical topic but I did not found anything that
MySQL noob here; looked around first but couldn't find the answer to this question.
This is a recurring question on many forums, and I have a working solution,
http://www.spoj.pl/problems/GNY07H/ In this question we have to find number of ways to arrange 2X1
I know this is a recurring question, but I haven't really found a useful
This question goes beoynd just programming, but I'd like to get some input on
This might be a subjective question, but I'll give it a go. There are
This is a recurring question for me, but I'd like to reiterate. Quickly explain
Sorry for the simple question, but this has been killing me and I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.