Code example for SmsMessage

Methods: getDisplayMessageBodygetDisplayOriginatingAddressisEmail

0
			 
		} 
	} 
 
	private void handleSMS(SmsMessage msg, Context context) {
		String number = msg.getDisplayOriginatingAddress();
 
		String international_number = IdentifierUtil
				.phoneNumberToInternational(number);
 
		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)
				.extra(extra).fire(context);
	}