are you sure that your reciever is correct? The specific port is coded
in the Intent received by the receiver.

a small example what i want to say:

onReceive(...., intent)
{
  final String uri=intent.getDataString();
final String [] str = uri.split(":");
final int port = Integer.parseInt(str[str.length()-1]);
if(port==yourPort) do some stuff

}

hope I could help you


On 29 Sep., 10:36, Warren <[email protected]> wrote:
> Is it possible to receive SMS on a specific port on my HTC Desire?
> My development enviroment:Android 2.1
>
> This is the configuration of my Receive program
> AndroidManifest.xml:
>
> <receiver android:name=".Receive">
>   <intent-filter>
>    <action android:name="android.provider.Telephony.SMS_RECEIVED"/>
> <data android:scheme="sms" />
>         <data android:host="localhost"/>
>         <data android:port="50000"/>
>   </intent-filter>
> </receiver>
>
> I used the NOWSMS tool to send a SMS message with a port, but my
> program not work.
> Can anyone help me?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to