Vous êtes sur la page 1sur 2

Using SmsManager to send SMS

The SmsManager manages SMS operations such as sending data to the given mobile device. You can create this object by calling the static
method SmsManager.getDefault() as follows:
SmsManager smsManager = SmsManager.getDefault();
Once you have SmsManager object, you can use sendDataMessage() method to send SMS at the specified mobile number as below:
smsManager.sendTextMessage("phoneNo", null, "SMS text", null, null);
Apart from the above method, there are few other important functions available in SmsManager class. These methods are listed below:
S.N
.

Method & Description

ArrayList<String> divideMessage(String text)


This method divides a message text into several fragments, none bigger than the maximum SMS
message size.

static SmsManager getDefault()


This method is used to get the default instance of the SmsManager

void sendDataMessage(String destinationAddress, String scAddress, short


destinationPort, byte[] data, PendingIntent sentIntent, PendingIntent deliveryIntent)
This method is used to send a data based SMS to a specific application port.

void sendMultipartTextMessage(String destinationAddress, String scAddress,


ArrayList<String> parts, ArrayList<PendingIntent> sentIntents, ArrayList<PendingIntent>
deliveryIntents)
Send a multi-part text based SMS.

void sendTextMessage(String destinationAddress, String scAddress, String text,


PendingIntent sentIntent, PendingIntent deliveryIntent)
Send a text based SMS.

Sec. 1. Grounds upon which attachment may issue. At the commencement of the action or at any time before entry
of judgment, a plaintiff or any proper party may have the property of the adverse party attached as security for the
satisfaction of any judgment that may be recovered in the following cases:
(a) In an action for the recovery of a specified amount of money or damages, other than moral and exemplary,
on a cause of action arising from law, contract, quasi-contract, delict or quasi-delict against a party who is about to
depart from the Philippines with intent to defraud his creditors;
(b) In an action for money or property embezzled or fraudulently misapplied or converted to his own use by a
public officer, or an officer of a corporation, or an attorney, factor, broker, agent, or clerk, in the course of his
employment as such, or by any other person in a fiduciary capacity, or for a willful violation of duty;
(c) In an action to recover the possession of property unjustly or fraudulently taken, detained or converted,
when the property, or any part thereof, has been concealed, removed, or disposed of to prevent its being found or
taken by the applicant or an authorized person;
(d) In an action against a party who has been guilty of a fraud in contracting the debt or incurring the obligation
upon which the action is brought, or in the performance thereof;

(e) In an action against a party who has removed or disposed of his property, or is about to do so, with intent to
defraud his creditors; or
(f) In an action against a party who does not reside and is not found in the Philippines, or on whom summons
may be served by publication.

If prayer for writ of attachment is included in a Complaint, verification in the Complaint is sufficient, separate affidavit is
not necessary.

Vous aimerez peut-être aussi