开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜