After reading many posts telling me how it can't be done, I stumbled
across a way to do it with the stock Android Messaging app, so it
works on most devices. I would be willing to bet that most SMS apps
also use the same method, since you see your messages in both places.
private void storeMessage(String phoneNo, String msg) {
ContentValues values = new ContentValues();
values.put("address", phoneNo);
values.put("body", msg);
getContentResolver().insert(Uri.parse("content://sms/sent"),
values);
}
Now as to whether or not you can set it as a new message, I don't
know. But you CAN write it into the default message store.
Brian Savignano
On Jan 4, 5:05 am, VA <[email protected]> wrote:
> One of the applications that I building requires generating a local
> SMS on the phone and injecting it into the message store so that the
> user perceives that he has received a new SMS.
>
> One of the usecases that need this is the capability to transfer a SMS
> message over bluetooth from one phone to another and then show as if
> it was a newly received SMS message.
>
> Any hints on how can I insert a message into message store and trigger
> rest of the mechanism so that the perceives it as a newly received
> message,
--
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