开发者

How to add some feature to existing SMS Message application in android

开发者 https://www.devze.com 2023-03-22 11:14 出处:网络
I want to use the existing sms application in android phones and add some features. How to use them.i want the entire functionality including interface, logging as thread etc开发者_开发知识库.

I want to use the existing sms application in android phones and add some features.

How to use them.i want the entire functionality including interface, logging as thread etc开发者_开发知识库.

Thanks in advance


Not sure what you want to do here:

Simple way:

SmsManager mgr = SmsManager.getDefault();    
String phoneNumber = "12345667860";    
mgr.sendTextMessage(phoneNumber, null, "Sup bbz", null, null);

Alternate way using intents:

String phoneNumber = "12345667860";
startActivity(new Intent(Intent.ACTION_VIEW, Uri.fromParts("sms", phoneNumber, null)));

Android uses intents to communicate between processes in the dvm.

Read the documentation to know more about the exposed api

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号