Wednesday, July 14, 2010

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

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 Jul 14, 2:45 pm, Nishant <nishant.s...@indianic.com> wrote:
> 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 Jul 14, 10:52 am, Amit <amitmishr...@gmail.com> wrote:
>
>
>
> > Hi All,
>
> > I have started the default SMS application and specified the SMS text
> > to be sent through following code-
>
> > intent = new Intent(Intent.ACTION_VIEW, Uri.parse("sms:"));
> > intent.putExtra("sms_body", "SMS Text");
> > startActivity(intent);
>
> > It worked fine and sends the message to selected number from contact
> > list.
>
> > My requirement is that i want to know the number to which my SMS was
> > sent?
>
> > Please help me...its urgent.
>
> > Thanks in advance.
>
> > Amit

--
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 from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate