Code example for SmsMessage: Receiving Text Messages (SMS)

Methods: getMessageBodygetTimestampMillis

	 * @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;
Contextual code suggestions in your IDE  Get Codota for Java