hi ,i am trying to send a data message using
sendDataMessage("5556",null,1111,message.getBytes(),null,null) but it
seem to be not working on the receiver side

i declared a broadcast receiver in the Manifest :

        <receiver android:name=".SMSReceiver"
                  android:enabled="true"
                  >
            <intent-filter android:priority="100">
                <action
android:name="android.intent.action.DATA_SMS_RECEIVED" />
                 <data android:host="localhost"
                            android:port="1111"
                            android:scheme="sms"/>


            </intent-filter>
        </receiver>


so in the onReceive() function of the broadcastReceiver i have just
put a little test to know if the message has been received or not  :

   public void onReceive(Context context, Intent intent) {

 private  final String
ACTION="android.intent.action.DATA_SMS_RECEIVED";

                if(ACTION.equals(intent.getAction())  )
                {
                      Toast.makeText(context,"message reçu",
Toast.LENGTH_LONG).show();
                }

and when i run in the emulator i  have nothing it seems the message is
sent but the receiver doesn't respond

can someone help me through this ?

-- 
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