Creates an intent that will allow to send an SMS without specifying the phone number

@param body The text to send
@return the intent
439644
public static Intent newSmsIntent(Context context, String body) {
        return newSmsIntent(context, body, (String[]) null);
    }
512422
public static Intent newEmptySmsIntent(Context context, String[] phoneNumbers) {
        return newSmsIntent(context, null, phoneNumbers);
    }
1231700
public static Intent sendSms(String to, String message) {
        Uri smsUri = Uri.parse("tel:" + to);
        Intent intent = new Intent(Intent.ACTION_VIEW, smsUri);
        intent.putExtra("address", to);
        intent.putExtra("sms_body", message);
        intent.setType("vnd.android-dir/mms-sms");
        return intent;
    }
1012778
public int addReply(int conversationId, String text) {
		return getResourceFactory()
				.getApiResource("/conversation/" + conversationId + "/reply")
				.entity(new MessageCreate(text),
						MediaType.APPLICATION_JSON_TYPE)
				.get(MessageCreateResponse.class).getMessageId();
	}
1119622
public static String getContentTypeByRequestBody(String body) {
		final ContentType contentType = ContentType.get(body);
		return (null == contentType) ? null : contentType.toString();
	}
1299168
public Sms to(String name, PhoneNumber number) {
		to(new Recipient(name, number));
		return this;
	}
1351572
public boolean sms(final Principal principal,
                       final String attribute,
                       final String text, final String from) {
        if (StringUtils.isNotBlank(attribute) && principal.getAttributes().containsKey(attribute) && isSmsSenderDefined()) {
            val to = getFirstAttributeByName(principal, attribute);
            if (to.isPresent()) {
                return sms(from, to.get().toString(), text);
            }
        }
        LOGGER.debug("Phone attribute [{}] cannot be found or no configuration for sms provider is defined", attribute);
        return false;
    }
312033
@Override
    public String sendSMS(String CorpNum, String sender, String content,
                          Message[] Messages, Date reserveDT, Boolean adsYN, String UserID, String requestNum)
            throws PopbillException {
        return sendMessage(MessageType.SMS, CorpNum, sender, null, null, content,
                Messages, reserveDT, adsYN, UserID, requestNum);
    }
1302595
private static Subject setCallerSubject(Subject s) {
        Subject currentCallerSubject = null;
        SubjectManagerService sms = smServiceRef.getService();
        if (sms != null) {
            if (s == null) {
                s = new Subject();
            }
            currentCallerSubject = sms.getCallerSubject();
            sms.setCallerSubject(s);
        }
        return currentCallerSubject;
    }
1352621
public PactDslRequestWithoutPath body(Document body) throws TransformerException {
        requestBody = OptionalBody.body(xmlToString(body).getBytes());
        if (!requestHeaders.containsKey(CONTENT_TYPE)) {
            requestHeaders.put(CONTENT_TYPE, Collections.singletonList(ContentType.APPLICATION_XML.toString()));
        }
        return this;
    }
833685
@NonNull
    public Intent build() {
        Uri mailtoUri = constructMailtoUri();
        return new Intent(Intent.ACTION_SENDTO, mailtoUri);
    }
31780
@SuppressWarnings("unchecked")
	public List<Sms> getSms(final Application app, final  int id, final String phoneNumber) {
		DetachedCriteria criteria = DetachedCriteria.forClass(Sms.class);
		criteria.add(Restrictions.eq(Sms.PROP_INITIAL_ID,id));
		criteria.add(Restrictions.eq(Sms.PROP_APP,app));
		criteria.add(Restrictions.eq(Sms.PROP_PHONE, phoneNumber));
		return getHibernateTemplate().findByCriteria(criteria);
	}
50077
def _send(self, message):
        

        params = {
            'from': message.from_phone, 
            'to': ",".join(message.to),
            'text': message.body,
            'api_key': self.get_api_key(),
            'api_secret': self.get_api_secret(),
        }


        print(params)

        logger.debug("POST to %r with body: %r", NEXMO_API_URL, params)

        return self.parse(NEXMO_API_URL, requests.post(NEXMO_API_URL, data=params))
1022847
public void send(String destination, Object body) {
        AsyncMessage message = this.defaultMessageCreator.createMessage();
        message.setDestination(destination);
        message.setBody(body);
        getMessageBroker().routeMessageToService(message, null);
    }
621803
@SuppressWarnings("deprecation")
    public static Intent newPickContactWithPhoneIntent() {
        Intent intent;
        if (isContacts2ApiSupported()) {
            intent = newPickContactIntent(ContactsContract.CommonDataKinds.Phone.CONTENT_TYPE);
        } else {
            // pre Eclair, use old contacts API
            intent = newPickContactIntent(Contacts.Phones.CONTENT_TYPE);
        }
        return intent;
    }
1334263
public void sendMessage(@NonNull final String conversationId, @NonNull final String body, @Nullable Callback<ComapiResult<MessageSentResponse>> callback) {
        SessionData session = dataMgr.getSessionDAO().session();
        adapter.adapt(sendMessage(conversationId, APIHelper.createMessage(conversationId, body, session != null ? session.getProfileId() : null)), callback);
    }
1250770
public void setBody(String body)
    {
    	String xbody = body;
    	String [] row = xbody.split("\n");
    	for(int i=0; i<row.length; i++){
    		this.m_xbody.add(row[i]);
    	}
    }