Code example for SmsMessage

Methods: getDisplayMessageBody, getDisplayOriginatingAddress, isEmail

	private void handleSMS(SmsMessage msg, Context context) {
		String number = msg.getDisplayOriginatingAddress();
		String international_number = IdentifierUtil
		String type = TYPE_NOTIFY_SMS;
		if (msg.isEmail())
			// Must have been an SMS from an email address 
			type = NotificationTypes.particularizeType(type, "emailed");
		// throw in the body of the message for good measure 
		String extra = msg.getDisplayMessageBody();
		// Will tell the vibrator service to get busy 
		notify_provider.get().identifier(international_number, type)