![]() ![]() Void sendMultipartTextMessage(String destinationAddress, String scAddress, ArrayList parts, ArrayList sentIntents, ArrayList deliveryIntents) ![]() This method is used to send a data based SMS to a specific application port. Void sendDataMessage(String destinationAddress, String scAddress, short destinationPort, byte data, PendingIntent sentIntent, PendingIntent deliveryIntent) ![]() This method is used to get the default instance of the SmsManager This method divides a message text into several fragments, none bigger than the maximum SMS message size. Of course, both need SEND_SMS permission.Īpart from the above method, there are few other important functions available in SmsManager class. SendIntent.putExtra("sms_body", "default content") Intent sendIntent = new Intent(Intent.ACTION_VIEW) ndTextMessage("phoneNo", null, "sms message", null, null) SmsManager smsManager = SmsManager.getDefault() In this tutorial, we shows you two basic examples to send SMS message − In Android, you can use SmsManager API or devices Built-in SMS application to send SMS's. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |