Shruthi,

The default messaging app on the phone isn't the only messaging app
you can use: there are many others.  So in this case it doesn't make
sense to delete the message from the "Messaging inbox" because there
could be more than one of those.

However, I believe that, while not documented in the public sdk, there
is a contentprovider for sms messages that you can work with:

http://groups.google.com/group/android-beginners/browse_thread/thread/2e049e79f88d95d5?pli=1

Go read about ContentProviders and see if this helps you, and remember
that if you use it your app might break (in fact, this was mentioned
around the ~1.6 timeframe, so that content provider may be entirely
locked down now, and might not let you delete things anymore...).

So basically, assuming that everyone uses the default messaging app is
a bad idea, if you have to access it you might be able to use that
content provider, but know that you're doing is not guaranteed to
work.

Kris

On Mon, Oct 31, 2011 at 8:25 AM, Shruthi Varma
<[email protected]> wrote:
> Hi All,
>
> I am developing a chat based application where I have to send and
> receive sms chats from a particular number and display it inside my
> application. Those chats should not be visible in the Messaging Inbox
> of the phone.
>
> I am able to send messages from my app easily, it is not recorded in
> the Messaging Inbox.
> But the problem lies in receiving sms.
>
> Using Broadcast Receiver, I am able to receive sms in my app, but
> those sms chats are visible in the Messaging Inbox too.
>
> I want to write a code where the messages from a particular number are
> received from my app and deleted from the Messaging Inbox
> simultaneously.
>
> Please help me to achieve this.
>
> Regards,
> Shruthi Varma.
>
> --
> 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

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