[android-developers] Re: Getting phone number from default SMS activity

2010-07-14 Thread Nishant
Hi, You can pass any integer value. suppose 1 startActivityForResult(intent, 1) ; And in activity class you can override the onActivityResult() method. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { // TODO Auto-generated method

[android-developers] Re: Getting phone number from default SMS activity

2010-07-14 Thread Amit
what request code i should mention? On Jul 14, 4:06 pm, Nishant wrote: > Hi, > > Use startActivityForResult(intent, requestCode) > May be it will help you. > > Regards, > Nishant Shah -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To pos

[android-developers] Re: Getting phone number from default SMS activity

2010-07-14 Thread Nishant
Hi, Use startActivityForResult(intent, requestCode) May be it will help you. Regards, Nishant Shah -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe fro

[android-developers] Re: Getting phone number from default SMS activity

2010-07-14 Thread Amit
Thanks Nishant, I think you havn't got my question. My question is that after the default SMS application has been launched, user has entered the number and pressed the "Send" button. After the message has been sent successfully, i want to know the number that user has entered. Regards Amit On

[android-developers] Re: Getting phone number from default SMS activity

2010-07-14 Thread Nishant
Hi, You can use the following code: Intent sendIntent= new Intent(Intent.ACTION_VIEW); sendIntent.putExtra("sms_body", "smsBody"); sendIntent.putExtra("address", "phoneNumber1;phoneNumber2;..."); sendIntent.setType("vnd.android-dir/mms-sms"); startActivity(sendIntent); Regards, Nishant Shah On