views:

177

answers:

2

Hi,

I'm trying to write an app that has to manipulate my inbox and my sent messages without sending or receiving a message.

This tutorial shows me how i can send messages, but i want my phone to think that i sent one, without actually sending one.

I've searched in the Android References and i think i need to use:

  • SMS Manager
  • SMS Message

How can i do this?

Thanks, Ruben

A: 

I'm trying to write an app that has to manipulate my inbox and my sent messages without sending or receivin a message.

Android, the OS, does not have an "inbox" or "sent messages".

Some SMS applications do. However, I am aware of none that offer documented and supported APIs for you to "manipulate" them this way.

CommonsWare
But there is a standard Messaging app in Android isn't it? So if i could manipulate that one ...
Ruben B
@Ruben: "But there is a standard Messaging app in Android isn't it?" -- not really. It is replaced on some devices by others. "So if i could manipulate that one" -- it does not offer documented and supported APIs for you to "manipulate" it this way.
CommonsWare
A: 

You can get a ContentProvider with URL "content://sms/inbox" and "content://sms/sent" and do an insert there.

yuku
It works this way,but there has to be another way to do this. Also read this: http://android-developers.blogspot.com/2010/05/be-careful-with-content-providers.html
Ruben B