Hey guys, i'm working for Android MMS(APP Level).but i got some matters.
my code: AndroidManifest.xml .... <receiver android:name=".SMSReceiver" android:permission="android.permission.BROADCAST_WAP_PUSH" > <intent-filter android:priority="1000" > <action android:name="android.provider.Telephony.WAP_PUSH_RECEIVED" /> <data android:mimeType="application/vnd.wap.mms- message" /> </intent-filter> </receiver> <service android:name=".MMSNotificationService" > <intent-filter > <action android:name="com.local.service.MMS" /> </intent-filter> </service> ... <uses-permission android:name="android.permission.RECEIVE_MMS" /> <uses-permission android:name="android.permission.RECEIVE_WAP_PUSH" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.BROADCAST_WAP_PUSH"/> My BroadcastReceiver: public class SMSReceiver extends BroadcastReceiver { private static final String action = "android.provider.Telephony.WAP_PUSH_RECEIVED"; @Override public void onReceive(Context arg0, Intent arg1) { if(arg1.getAction().equals(action)){ Intent startService=new Intent("com.local.service.MMS"); arg0.startService(startService); } } } but in my Services when MMS Coming Cursor cursor = getContentResolver().query(Uri.parse("content://mms/ inbox"), null, null,null, null); the matter is : cursor.getCount() <= 0 always! Cursor cPart = getContentResolver().query(Uri.parse("content://mms/ part"),null, "mid=" + id, null, null); the matter is : cPart.getCount() the count will be <=0 always! -- 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