I am able to receive wap push with small change in AndroidManifest,xml
file

as
<intent-filter>
<action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" />
<data android:mimeType="application/vnd.wap.sic" />
</intent-filter>

But now we have integrated now sms with our server which will send wap
push to nowsms which intern send it to device.

Android device is receiving the wap sms but at the system level
android is discarding this sms because of invalid content type.

The android logcat is displaying as follows

02-21 18:40:02.912: WARN/WAP PUSH(143): Received PDU. Unsupported
Content-Type = 68( this is from ./frameworks/base/telephony/java/com/
android/internal/telephony/WapPushOverSms.java);

We can't change the servers message content type. We have only one
choice for this we need to catch this at system level and trying to do
some operations on it

Is this is possible at application level. How to catch this event

Please any help


On Feb 16, 3:06 pm, Karteek N <kartee...@gmail.com> wrote:
> I am sending wap push using now sms software.I have a android development
> phone.
> The following is my code to receive wap push
>
> Android Manifest file
>
> <receiver android:enabled="true" android:name=".PushMsgReceiver">
> <intent-filter>
> <action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" />
> <action android:name="android.provider.Telephony.SMS_RECEIVED" />
> <action android:name="android.provider.Telephony.MMS_RECEIVED" />
> </intent-filter>
> </receiver>
> </application>
> <uses-permission
> android:name="android.permission.INTERNET"></uses-permission>
> <uses-permission
> android:name="android.permission.RECEIVE_WAP_PUSH"></uses-permission>
> <uses-permission
> android:name="android.permission.RECEIVE_SMS"></uses-permission>
> <uses-permission
> android:name="android.permission.RECEIVE_MMS"></uses-permission>
>
> PushMsgReceiver.java
>
> public class PushMsgReceiver extends BroadcastReceiver {
> public final static String TAG = "Push Receiver";
> private static final String SMS_RECEIVED =
> "android.provider.Telephony.SMS_RECEIVED";
> private static final String PUSH_RECEIVED =
> "android.provider.Telephony.WAP_PUSH_RECEIVED";
> @Overide
> public void onReceive(Context context, Intent intent) {
>     Log.e(TAG, "Intent recieved: " + intent.getAction());
>     if (intent.getAction().equals(SMS_RECEIVED)) {
>            //toast to show result
>           Log.e(TAG, "SMS: " + intent.getAction());
>            Toast.makeText(context, "SMS_RECEIVED",
> Toast.LENGTH_LONG).show();
>    }
>     if (intent.getAction().equals(PUSH_RECEIVED)) {
>         //toast to show result
>            Log.e(TAG, "PUSH: " + intent.getAction());
>         Toast.makeText(context, "PUSH MSG", Toast.LENGTH_LONG).show();
>     }
>
> }
>
> But It is not displaying for Wap push. This receiver is not at all active on
> Wap push receive event. But message comes to my development phone inbox
>
> Any help please

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