Bindu,

On the same page, refer the text after "Figure 4".  That lists a way to use
native application to send sms

All,
Request help to let me understand what are all the intent.putExtras I must
do to send the sms automatically.  With the following piece of code, the
compose window with To and body filled in comes up, but waits for user to
press "Send".  The developer guide does NOT give any help on this.  How do I
use native application to send SMS?
                        Uri smsToUri = Uri.parse("smsto://" + phoneNo);
                        Intent returnIt = new Intent(Intent.ACTION_SENDTO,
smsToUri);
                        returnIt.putExtra("sms_body", message);
                        returnIt.putExtra("exit_on_sent", true);
                        startActivity(returnIt);

-vignesh

On Wed, May 27, 2009 at 7:10 PM, Kasmoori Bindu <[email protected]>wrote:

> Hi Vignesh,
>
> Thank you for the quick reply.........
>
> Iam not sure whether it is possible to send SMS without user intervention
> but  i think some button click or inturn some action should be there to make
> use of SMS service.
>
> However, if you want to send the SMS without invoking built-in SMS app,
> then you can through the following link
> http://mobiforge.com/developing/story/sms-messaging-android
>
> Best Regards,
> Bindu
>
>
>
> On Wed, May 27, 2009 at 6:32 PM, Vignesh <[email protected]>wrote:
>
>> You can use intent.putExtra("exit_on_sent", true) for your needs
>>
>> I am struck in a problem, wherein on passing intent to Native messaging
>> application, it opens up compose window and waits for user intervention to
>> send the SMS (by clicking on send button).   Could you get your code up,
>> wherein it sends the sms automatically without user intervention?
>>
>>
>>
>> On Wed, May 27, 2009 at 4:39 PM, Kasmoori Bindu 
>> <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> Iam a  beginner in android development, wanted to know whether following
>>> usecase  is possible or not
>>>
>>>
>>>               Supposing I have  'MyActivity' which starts the in-built
>>> SMSapplication using Intent. In SMS activity, when I Click on 'Send',  SMS
>>> should be send  successfully and it should eixt the application without
>>> being inside the SMS application . I mean it should come back to
>>> 'MyActivity'.
>>>
>>> Please, let me know if this usecase works, or any suggestions regarding
>>> this is highly appreciated.
>>>
>>> Best Regards,
>>> Bindu
>>>
>>>
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to