hi use below mentioned method
this will give u object[] of smsmessage * private* SmsMessage[]getMessagesFromIntent(Intent intent) { SmsMessage retMsgs[] = *null*; Bundle bdl = intent.getExtras(); *try*{ Object pdus[] = (Object [])bdl.get("pdus"); retMsgs = *new* SmsMessage[pdus.length]; *for*(*int* n=0; n < pdus.length; n++) { *byte*[] byteData = (*byte*[])pdus[n]; retMsgs[n] = SmsMessage.*createFromPdu*(byteData); } } *catch*(Exception e) { Log.*e*("DEBUG", "fail", e); } *return* retMsgs; } use getDisplayMessageBody() to get ur message. On Tue, Nov 24, 2009 at 3:27 PM, MaNjO <manojh3...@gmail.com> wrote: > Hi > I require to delete an incoming SMS based on certain parameters > that I define. > Is it possible to do this? > > I have tinkered around with onReceive() events but I cannot get the > incoming message to get deleted. The best I could do was to delete all > the exisitng messages in the Inbox. > > Can someone help? > > -- > 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<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- 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