Hi guys,
I've been following the examples and the API (1.6) exactly, but my
WAP_PUSH receiver doesn't capture the Wap Pushes that sends to the
device (using NowSMS).

I would really really appreciate all the help I can get here.
Thanks!

Here is the AndroidManifest file:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="com.mycompany.android.drm.wappush"
      android:versionCode="1"
      android:versionName="1.0">

      <uses-permission
android:name="android.permission.RECEIVE_WAP_PUSH"/>

    <application android:icon="@drawable/icon" android:label="@string/
app_name">

        <receiver android:name=".WapPushReceive"
                android:exported="true">

            <intent-filter>
                <action
android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" />
                <data android:mimeType="application/vnd.oma.drm.rights
+xml" />
            </intent-filter>
            <intent-filter>
                <action
android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" />
                <data android:mimeType="application/vnd.oma.drm.rights
+xml" />
            </intent-filter>
        </receiver>
    </application>
    <uses-sdk android:minSdkVersion="4" />

</manifest>

The receiver has been more & less autogenerated by eclipse:


WapPushReceive.java :

package com.mycompany.android.drm.wappush;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class WapPushReceive extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {

        final String ACTION =
"android.provider.Telephony.WAP_PUSH_RECEIVED_ACTION";
        Log.d(TAG, "BINGO...... WAP Push message arrived!!! ");
        if (intent.getAction().equals(ACTION)){
            System.out.println("BINGO!!!");
        }
    }
}

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

Reply via email to