Code example for SmsMessage: Receiving Text Messages (SMS)

Methods: getMessageBody, getTimestampMillis

0
	 * @param smsMessage received message got by createFromPdu method; 
	 * @return return a data that category should be filled in 
	 */ 
	public ParsedData convertSms(SmsMessage smsMessage) throws NotValidSmsDataException {
		ParsedData parsedData;
		String content = smsMessage.getMessageBody();
		Date date = new Date(smsMessage.getTimestampMillis());
		parsedData = parserFactory.getParsedData(content, date);
		return parsedData;
	} 
}