android - How can I execute default sms app? -


I registered my receiver for receiving SMS when I receive the SMS, how do I execute the phone's default SMS app Can i do

Can I send the intention to start the default SMS app?

This can be done in a few different ways. Here's one:

  Send intentions = new intent (int. Action_viez); SendIntent.putExtra ("sms_body", "The content of the SMS goes here ..."); SendIntent.setType ("vnd.android-directory / MMS-SMS"); StartActivity (sendIntent);    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -