开发者

How to add SMS in inbox and sent messages in android programmatically?

开发者 https://www.devze.com 2023-01-15 14:55 出处:网络
I\'m trying to write an app that has to manipulate my inbox and my sent messages without sending or receiving a message.

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

This tut开发者_开发技巧orial 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?


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号