Code example for SmsMessage

Methods: getDisplayMessageBodygetTimestampMillis

0
	public static final String ACTION = "action";
 
	private long id;
	private long senderId;
	private String message;
	private long received;
	private boolean read;
	private boolean markedNotSpamByUser;
	private String sender;
 
	public SmsMessageEntry() { 
	} 
 
	public SmsMessageEntry(Cursor c) {
		this.id = c.getInt(c.getColumnIndex(SmsMessageEntry._ID));
		this.senderId = c.getInt(c.getColumnIndex(SmsMessageEntry.SENDER_ID));
		this.sender = c.getString(c.getColumnIndex(SmsMessageEntry.SENDER));
		this.message = c.getString(c.getColumnIndex(SmsMessageEntry.MESSAGE));
		this.received = c.getLong(c.getColumnIndex(SmsMessageEntry.RECEIVED));
		this.read = c.getInt(c.getColumnIndex(SmsMessageEntry.READ)) == 1;