[android-developers] Re: How to add SMS to inbox in android programmatically?

2009-04-09 Thread sermojohn
But, does anyone know how I could access the sms inbox from my phone's database? As far as I have figured out, this was better documented on pervious version of the Android API. I cant even find the constants of the perimssion that I have to add to the Manifest file of my application. Has anyone

[android-developers] Re: How to add SMS to inbox in android programmatically?

2009-03-27 Thread John
try this method: PendingIntent pi = PendingIntent.getActivity(this, 0, new Intent(this, SMS.class), 0); SmsManager sms = SmsManager.getDefault(); sms.sendTextMessage(phoneNumber, null, message, pi, null); it works well. On Mar 18, 4:53 am, Seer

[android-developers] Re: How to add SMS to inbox in android programmatically?

2009-03-17 Thread Kenny
Thanks for your update. So you exactly have done two things: 1. Call SmsManager::sendTextMessage( ) 2. Put the sent SMS to its database via ContentResolver::insert( ) Kenny On Mar 17, 6:42 am, Seer gilligan.ch...@gmail.com wrote: i have been trying to do the same thing and just worked it out.  

[android-developers] Re: How to add SMS to inbox in android programmatically?

2009-03-17 Thread Seer
Thanks for your update. So you exactly have done two things: 1. Call SmsManager::sendTextMessage( ) 2. Put the sent SMS to its database via ContentResolver::insert( ) The code i gave you only adds a record to the phones sms database to say an sms has been sent and it will be visible to the

[android-developers] Re: How to add SMS to inbox in android programmatically?

2009-03-16 Thread Kenny
Did you ever try to open SMS database to insert the sent SMS record? You should use message provider to insert a database record. But I am not sure how to let SMS inbox UI notified. Need to study. Kenny On Mar 13, 5:09 pm, senthil senthil...@gmail.com wrote: HI, Iam sending the sms by using